[midPoint] CSV resource import fails: No object class found for the shadow

Fabian Noll-Dukiewicz fabian.noll-dukiewicz at fndit.de
Wed Feb 2 13:52:05 CET 2022


Hi Mercedes,

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.

Please attach your whole configuration file to check your config.

Here are some screenshots of my csv settings:
General configuration
[cid:49fdd9de-60dc-488d-aa9e-0e7293a22d01]

Schema (automatically generated by midPoint)
[cid:3c127e68-9c1f-4a30-8c6a-8ce1aab7ad2a]

Schema handling
[cid:7d038b4e-1640-42ad-866d-201817071107]

Synchronization
[cid:b9070a67-4d22-4da3-aaf8-bff5239ffc31]

[cid:49ad5f01-2ec6-4b53-8e2e-3fdcfd5e0e9b]

Kind regards,
Fabian

________________________________
Von: Mercedes Oncina Deltell <moncina at um.es>
Gesendet: Mittwoch, 2. Februar 2022 13:21
An: midpoint at lists.evolveum.com <midpoint at lists.evolveum.com>
Betreff: Re: [midPoint] CSV resource import fails: No object class found for the shadow


I have already defined the schema like this:

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"<http://www.w3.org/2001/XMLSchema> xmlns:a="http://prism.evolveum.com/xml/ns/public/annotation-3"<http://prism.evolveum.com/xml/ns/public/annotation-3> xmlns:ra="http://midpoint.evolveum.com/xml/ns/public/resource/annotation-3"<http://midpoint.evolveum.com/xml/ns/public/resource/annotation-3> xmlns:tns="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3"<http://midpoint.evolveum.com/xml/ns/public/resource/instance-3> elementFormDefault="qualified" targetNamespace="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3"<http://midpoint.evolveum.com/xml/ns/public/resource/instance-3>>
                <xsd:import namespace="http://prism.evolveum.com/xml/ns/public/annotation-3"<http://prism.evolveum.com/xml/ns/public/annotation-3>/>
                <xsd:import namespace="http://midpoint.evolveum.com/xml/ns/public/resource/annotation-3"<http://midpoint.evolveum.com/xml/ns/public/resource/annotation-3>/>
                <xsd:complexType name="AccountObjectClass">
                    <xsd:annotation>
                        <xsd:appinfo>
                            <ra:resourceObject/>
                            <ra:identifier xmlns:ri="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3"<http://midpoint.evolveum.com/xml/ns/public/resource/instance-3>>ri:UUID</ra:identifier>
                            <ra:displayNameAttribute xmlns:ri="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3"<http://midpoint.evolveum.com/xml/ns/public/resource/instance-3>>ri:UUID</ra:displayNameAttribute>
                            <ra:namingAttribute xmlns:ri="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3"<http://midpoint.evolveum.com/xml/ns/public/resource/instance-3>>ri:UUID</ra:namingAttribute>
                            <ra:nativeObjectClass>__ACCOUNT__</ra:nativeObjectClass>
                            <ra:kind>account</ra:kind>
                            <ra:default>true</ra:default>
                        </xsd:appinfo>
                    </xsd:annotation>
                    <xsd:sequence>
                        <xsd:element minOccurs="0" name="CLAVE" type="xsd:string">
                            <xsd:annotation>
                                <xsd:appinfo>
                                    <a:displayOrder>120</a:displayOrder>
                                    <ra:nativeAttributeName>CLAVE</ra:nativeAttributeName>
                                    <ra:frameworkAttributeName>CLAVE</ra:frameworkAttributeName>
                                </xsd:appinfo>
                            </xsd:annotation>
                        </xsd:element>
                        <xsd:element minOccurs="0" name="USERNAME" type="xsd:string">
                            <xsd:annotation>
                                <xsd:appinfo>
                                    <a:displayOrder>130</a:displayOrder>
                                    <ra:nativeAttributeName>USERNAME</ra:nativeAttributeName>
                                    <ra:frameworkAttributeName>USERNAME</ra:frameworkAttributeName>
                                </xsd:appinfo>
                            </xsd:annotation>
                        </xsd:element>
                        <xsd:element name="UUID" type="xsd:string">
                            <xsd:annotation>
                                <xsd:appinfo>
                                    <a:displayOrder>100</a:displayOrder>
                                    <ra:nativeAttributeName>UUID</ra:nativeAttributeName>
                                    <ra:frameworkAttributeName>__NAME__</ra:frameworkAttributeName>
                                </xsd:appinfo>
                            </xsd:annotation>
                        </xsd:element>
                    </xsd:sequence>
                </xsd:complexType>
            </xsd:schema>


El 02/02/2022 a las 12:00, midpoint-request at lists.evolveum.com<mailto:midpoint-request at lists.evolveum.com> escribió:

----------------------------------------------------------------------

Message: 3
Date: Wed, 02 Feb 2022 09:33:22 +0100
From: "Rainer Herbst" <rainer.herbst at aip.de><mailto:rainer.herbst at aip.de>
To: "midPoint General Discussion" <midpoint at lists.evolveum.com><mailto:midpoint at lists.evolveum.com>
Subject: Re: [midPoint] CSV resource import fails: No object class
        found for the shadow
Message-ID: <ximss-2986569 at cgpro.aip.de><mailto:ximss-2986569 at cgpro.aip.de>
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="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3"<http://midpoint.evolveum.com/xml/ns/public/resource/instance-3>>ri:NachnameVornameVertragsende</ra:identifier>
<ra:displayNameAttribute
xmlns:ri="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3"<http://midpoint.evolveum.com/xml/ns/public/resource/instance-3>>ri:NachnameVornameVertragsende</ra:displayNameAttribute>
<ra:namingAttribute
xmlns:ri="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3"<http://midpoint.evolveum.com/xml/ns/public/resource/instance-3>>ri:NachnameVornameVertragsende</ra:namingAttribute>
<ra:nativeObjectClass>__ACCOUNT__</ra:nativeObjectClass>
<ra:kind>account</ra:kind>

HTH!


On Mi, 2 Feb 2022 09:17:47 +0100
  Mercedes Oncina Deltell via midPoint <midpoint at lists.evolveum.com><mailto:midpoint at lists.evolveum.com> wrote:


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


Viele Grüße,

Rainer Herbst
Leiter IT-Service
Phone: +49 331 7499-257
e-mail: rainer.herbst at aip.de<mailto:rainer.herbst at aip.de>
https://www.aip.de

-----------------------------------------------------------------------------------------------
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: <https://lists.evolveum.com/pipermail/midpoint/attachments/20220202/ece9445a/attachment-0001.bin><https://lists.evolveum.com/pipermail/midpoint/attachments/20220202/ece9445a/attachment-0001.bin>

------------------------------


--
Mercedes Oncina Deltell
Servicio de Infraestructuras TICS
ATICA - Universidad de Murcia
Telf: +34 868881983
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20220202/3fe66af6/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 27070 bytes
Desc: image.png
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20220202/3fe66af6/attachment-0005.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 39929 bytes
Desc: image.png
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20220202/3fe66af6/attachment-0006.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 38452 bytes
Desc: image.png
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20220202/3fe66af6/attachment-0007.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 31045 bytes
Desc: image.png
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20220202/3fe66af6/attachment-0008.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 20185 bytes
Desc: image.png
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20220202/3fe66af6/attachment-0009.png>


More information about the midPoint mailing list