<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Hi Mercedes,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I think the schema is not so important, because it will be automatically generated by midPoint. More important ist the schema handling section and the synchronization configuration. At the schema handling you define whats happened for each attribute, like inbound
 and outbound mappings. At the synchronization section you configure whats going on with the entries for different situations.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Please attach your whole configuration file to check your config.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Here are some screenshots of my csv settings:</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<b>General configuration</b></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<b><img style="max-width:100%" class="w-856 h-478" size="27070" contenttype="image/png" data-outlook-trace="F:1|T:1" src="cid:49fdd9de-60dc-488d-aa9e-0e7293a22d01"><br>
</b></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<b><br>
</b></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<b>Schema (automatically generated by midPoint)</b></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<b><img style="max-width:100%" class="w-898 h-663" size="39929" contenttype="image/png" data-outlook-trace="F:1|T:1" src="cid:3c127e68-9c1f-4a30-8c6a-8ce1aab7ad2a"><br>
</b></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<b><br>
</b></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<b>Schema handling</b></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<b><img style="max-width:100%" class="w-905 h-584" size="38452" contenttype="image/png" data-outlook-trace="F:1|T:1" src="cid:7d038b4e-1640-42ad-866d-201817071107"><br>
</b></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<b><br>
</b></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<b>Synchronization</b></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<b><img style="max-width:100%" class="w-899 h-534" size="31045" contenttype="image/png" data-outlook-trace="F:1|T:1" src="cid:b9070a67-4d22-4da3-aaf8-bff5239ffc31"><br>
</b></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<b><img style="max-width:100%" class="w-671 h-404" size="20185" contenttype="image/png" data-outlook-trace="F:1|T:1" src="cid:49ad5f01-2ec6-4b53-8e2e-3fdcfd5e0e9b"><br>
</b></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Kind regards,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Fabian</div>
<div>
<div id="appendonsend"></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>Von:</b> Mercedes Oncina Deltell <moncina@um.es><br>
<b>Gesendet:</b> Mittwoch, 2. Februar 2022 13:21<br>
<b>An:</b> midpoint@lists.evolveum.com <midpoint@lists.evolveum.com><br>
<b>Betreff:</b> Re: [midPoint] CSV resource import fails: No object class found for the shadow</font>
<div> </div>
</div>
<div>
<p>I have already defined the schema like this:</p>
<p><i><font size="2"><xsd:schema xmlns:xsd=<a class="x_moz-txt-link-rfc2396E" href="http://www.w3.org/2001/XMLSchema">"http://www.w3.org/2001/XMLSchema"</a> xmlns:a=<a class="x_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="x_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="x_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="x_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="x_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="x_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="x_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="x_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="x_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="x_moz-cite-prefix">El 02/02/2022 a las 12:00, <a class="x_moz-txt-link-abbreviated" href="mailto:midpoint-request@lists.evolveum.com">
midpoint-request@lists.evolveum.com</a> escribió: </div>
<blockquote type="cite">
<pre class="x_moz-quote-pre">----------------------------------------------------------------------

Message: 3
Date: Wed, 02 Feb 2022 09:33:22 +0100
From: "Rainer Herbst" <a class="x_moz-txt-link-rfc2396E" href="mailto:rainer.herbst@aip.de"><rainer.herbst@aip.de></a>
To: "midPoint General Discussion" <a class="x_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="x_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="x_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="x_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="x_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="x_moz-txt-sig">
<pre>On Mi, 2 Feb 2022 09:17:47 +0100
  Mercedes Oncina Deltell via midPoint <a class="x_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="x_moz-quote-pre">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="x_moz-quote-pre">Viele Grüße,

Rainer Herbst
Leiter IT-Service
Phone: +49 331 7499-257
e-mail: <a class="x_moz-txt-link-abbreviated x_moz-txt-link-freetext" href="mailto:rainer.herbst@aip.de">rainer.herbst@aip.de</a>
<a class="x_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="x_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="x_moz-signature" cols="72">-- 
Mercedes Oncina Deltell
Servicio de Infraestructuras TICS
ATICA - Universidad de Murcia
Telf: +34 868881983</pre>
</div>
</div>
</body>
</html>