<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>I have already defined the schema like this:</p>
    <p><i><font size="2"><xsd:schema
          xmlns:xsd=<a class="moz-txt-link-rfc2396E" href="http://www.w3.org/2001/XMLSchema">"http://www.w3.org/2001/XMLSchema"</a>
          xmlns:a=<a class="moz-txt-link-rfc2396E" href="http://prism.evolveum.com/xml/ns/public/annotation-3">"http://prism.evolveum.com/xml/ns/public/annotation-3"</a>
xmlns:ra=<a class="moz-txt-link-rfc2396E" href="http://midpoint.evolveum.com/xml/ns/public/resource/annotation-3">"http://midpoint.evolveum.com/xml/ns/public/resource/annotation-3"</a>
xmlns:tns=<a class="moz-txt-link-rfc2396E" href="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3">"http://midpoint.evolveum.com/xml/ns/public/resource/instance-3"</a>
          elementFormDefault="qualified"
targetNamespace=<a class="moz-txt-link-rfc2396E" href="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3">"http://midpoint.evolveum.com/xml/ns/public/resource/instance-3"</a>><br>
                          <xsd:import
          namespace=<a class="moz-txt-link-rfc2396E" href="http://prism.evolveum.com/xml/ns/public/annotation-3">"http://prism.evolveum.com/xml/ns/public/annotation-3"</a>/><br>
                          <xsd:import
namespace=<a class="moz-txt-link-rfc2396E" href="http://midpoint.evolveum.com/xml/ns/public/resource/annotation-3">"http://midpoint.evolveum.com/xml/ns/public/resource/annotation-3"</a>/><br>
                          <xsd:complexType
          name="AccountObjectClass"><br>
                              <xsd:annotation><br>
                                  <xsd:appinfo><br>
                                      <ra:resourceObject/><br>
                                      <ra:identifier
xmlns:ri=<a class="moz-txt-link-rfc2396E" href="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3">"http://midpoint.evolveum.com/xml/ns/public/resource/instance-3"</a>>ri:UUID</ra:identifier><br>
                                      <ra:displayNameAttribute
xmlns:ri=<a class="moz-txt-link-rfc2396E" href="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3">"http://midpoint.evolveum.com/xml/ns/public/resource/instance-3"</a>>ri:UUID</ra:displayNameAttribute><br>
                                      <ra:namingAttribute
xmlns:ri=<a class="moz-txt-link-rfc2396E" href="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3">"http://midpoint.evolveum.com/xml/ns/public/resource/instance-3"</a>>ri:UUID</ra:namingAttribute><br>
                                      <b><ra:nativeObjectClass>__ACCOUNT__</ra:nativeObjectClass></b><br>
                                      <b><ra:kind>account</ra:kind></b><br>
                                     
          <ra:default>true</ra:default><br>
                                  </xsd:appinfo><br>
                              </xsd:annotation><br>
                              <xsd:sequence><br>
                                  <xsd:element minOccurs="0"
          name="CLAVE" type="xsd:string"><br>
                                      <xsd:annotation><br>
                                          <xsd:appinfo><br>
                                             
          <a:displayOrder>120</a:displayOrder><br>
                                             
          <ra:nativeAttributeName>CLAVE</ra:nativeAttributeName><br>
                                             
          <ra:frameworkAttributeName>CLAVE</ra:frameworkAttributeName><br>
                                          </xsd:appinfo><br>
                                      </xsd:annotation><br>
                                  </xsd:element><br>
                                  <xsd:element minOccurs="0"
          name="USERNAME" type="xsd:string"><br>
                                      <xsd:annotation><br>
                                          <xsd:appinfo><br>
                                             
          <a:displayOrder>130</a:displayOrder><br>
                                             
          <ra:nativeAttributeName>USERNAME</ra:nativeAttributeName><br>
                                             
<ra:frameworkAttributeName>USERNAME</ra:frameworkAttributeName><br>
                                          </xsd:appinfo><br>
                                      </xsd:annotation><br>
                                  </xsd:element><br>
                                  <xsd:element name="UUID"
          type="xsd:string"><br>
                                      <xsd:annotation><br>
                                          <xsd:appinfo><br>
                                             
          <a:displayOrder>100</a:displayOrder><br>
                                             
          <ra:nativeAttributeName>UUID</ra:nativeAttributeName><br>
                                             
<ra:frameworkAttributeName>__NAME__</ra:frameworkAttributeName><br>
                                          </xsd:appinfo><br>
                                      </xsd:annotation><br>
                                  </xsd:element><br>
                              </xsd:sequence><br>
                          </xsd:complexType><br>
                      </xsd:schema></font></i></p>
    <p><br>
    </p>
    <div class="moz-cite-prefix">El 02/02/2022 a las 12:00,
      <a class="moz-txt-link-abbreviated" href="mailto:midpoint-request@lists.evolveum.com">midpoint-request@lists.evolveum.com</a> escribió:
    </div>
    <blockquote type="cite"
      cite="mid:mailman.5.1643799602.2614.midpoint@lists.evolveum.com">
      <pre class="moz-quote-pre" wrap="">----------------------------------------------------------------------

Message: 3
Date: Wed, 02 Feb 2022 09:33:22 +0100
From: "Rainer Herbst" <a class="moz-txt-link-rfc2396E" href="mailto:rainer.herbst@aip.de"><rainer.herbst@aip.de></a>
To: "midPoint General Discussion" <a class="moz-txt-link-rfc2396E" href="mailto:midpoint@lists.evolveum.com"><midpoint@lists.evolveum.com></a>
Subject: Re: [midPoint] CSV resource import fails: No object class
        found for the shadow
Message-ID: <a class="moz-txt-link-rfc2396E" href="mailto:ximss-2986569@cgpro.aip.de"><ximss-2986569@cgpro.aip.de></a>
Content-Type: text/plain; charset="utf-8"; Format="flowed"

Hi!

My unerstandig is that you need to declare what kind of an object the 
imported "something" is. Normally it is "account" and it should be somewhere 
in the schema and schema handling sections:

<ra:resourceObject/>
<ra:identifier 
xmlns:ri=<a class="moz-txt-link-rfc2396E" href="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3">"http://midpoint.evolveum.com/xml/ns/public/resource/instance-3"</a>>ri:NachnameVornameVertragsende</ra:identifier>
<ra:displayNameAttribute 
xmlns:ri=<a class="moz-txt-link-rfc2396E" href="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3">"http://midpoint.evolveum.com/xml/ns/public/resource/instance-3"</a>>ri:NachnameVornameVertragsende</ra:displayNameAttribute>
<ra:namingAttribute 
xmlns:ri=<a class="moz-txt-link-rfc2396E" href="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3">"http://midpoint.evolveum.com/xml/ns/public/resource/instance-3"</a>>ri:NachnameVornameVertragsende</ra:namingAttribute>
<ra:nativeObjectClass>__ACCOUNT__</ra:nativeObjectClass>
<ra:kind>account</ra:kind>

HTH!
</pre>
      <div class="moz-txt-sig">
        <pre>On Mi, 2 Feb 2022 09:17:47 +0100
  Mercedes Oncina Deltell via midPoint <a class="moz-txt-link-rfc2396E" href="mailto:midpoint@lists.evolveum.com"><midpoint@lists.evolveum.com></a> wrote:
</pre>
      </div>
      <blockquote type="cite" style="color: #007cff;">
        <pre class="moz-quote-pre" wrap="">I am starting with midPoint trying to assess if it is useful for our 
goal of implementing an IAM.

I have defined a CSV resource, with the outbound mappings and I can 
see the existing records in the file, but when I try to import a 
record, this message appears:

/Operation: Import object (GUI)//
//Message: Could not import account 
shadow:93312157-c92c-4d70-9fc4-33eb298b018e(JI34ji456iE4650JT2)//
//Error: No object class found for the shadow/

I am new to the tool and although I have read the entire midPoint 
manual, I cannot find any information related to this error.

Can someone advise me where the error can be?

-- 
Mercedes Oncina Deltell
Servicio de Infraestructuras TICS
ATICA - Universidad de Murcia
Telf: +34 868881983
</pre>
      </blockquote>
      <pre class="moz-quote-pre" wrap="">Viele Grüße,

Rainer Herbst
Leiter IT-Service
Phone: +49 331 7499-257
e-mail: <a class="moz-txt-link-abbreviated moz-txt-link-freetext" href="mailto:rainer.herbst@aip.de">rainer.herbst@aip.de</a>
<a class="moz-txt-link-freetext" href="https://www.aip.de">https://www.aip.de</a>

-----------------------------------------------------------------------------------------------
Leibniz-Institut für Astrophysik Potsdam (AIP)
An der Sternwarte 16, 14482 Potsdam

Vorstand: Prof. Dr. Matthias Steinmetz, Wolfram Rosenbach
Stiftung bürgerlichen Rechts
Stiftungsverzeichnis Brandenburg: 26 742-00/7026
-----------------------------------------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3646 bytes
Desc: not available
URL: <a class="moz-txt-link-rfc2396E" href="https://lists.evolveum.com/pipermail/midpoint/attachments/20220202/ece9445a/attachment-0001.bin"><https://lists.evolveum.com/pipermail/midpoint/attachments/20220202/ece9445a/attachment-0001.bin></a>

------------------------------
</pre>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
Mercedes Oncina Deltell
Servicio de Infraestructuras TICS
ATICA - Universidad de Murcia
Telf: +34 868881983</pre>
  </body>
</html>