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

Marc Fueller marc.fueller at daasi.de
Wed Feb 2 13:32:28 CET 2022


Hi,

since you are trying to import files from a csv file, as I understand 
it, you would need inbound mappings, translating the values from the 
fields in the csv file to midPoint attributes.

Furthermore, you might want to have a look at the samples on github: 
https://github.com/Evolveum/midpoint-samples/tree/master/samples/resources/csv

Hope that helps.

Marc


Am 02.02.22 um 13:21 schrieb Mercedes Oncina Deltell via midPoint:
>
> I have already defined the schema like this:
>
> /<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
> xmlns:a="http://prism.evolveum.com/xml/ns/public/annotation-3" 
> xmlns:ra="http://midpoint.evolveum.com/xml/ns/public/resource/annotation-3" 
> xmlns:tns="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3" 
> elementFormDefault="qualified" 
> targetNamespace="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3">
>                 <xsd:import 
> namespace="http://prism.evolveum.com/xml/ns/public/annotation-3"/>
>                 <xsd:import 
> namespace="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">ri:UUID</ra:identifier>
>                             <ra:displayNameAttribute 
> xmlns:ri="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">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 escribió:
>> ----------------------------------------------------------------------
>>
>> Message: 3
>> Date: Wed, 02 Feb 2022 09:33:22 +0100
>> From: "Rainer Herbst"<rainer.herbst at aip.de>
>> To: "midPoint General Discussion"<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>
>> 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">ri:NachnameVornameVertragsende</ra:identifier>
>> <ra:displayNameAttribute
>> xmlns:ri="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">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>  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
>> 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>
>>
>> ------------------------------
> -- 
> Mercedes Oncina Deltell
> Servicio de Infraestructuras TICS
> ATICA - Universidad de Murcia
> Telf: +34 868881983
>
> _______________________________________________
> midPoint mailing list
> midPoint at lists.evolveum.com
> https://lists.evolveum.com/mailman/listinfo/midpoint

-- 
Marc Füller
Consultant

DAASI International GmbH
Europaplatz 3
D-72072 Tübingen
Germany

phone: +49 7071 407109-0
fax:   +49 7071 407109-9
email:marc.fueller at daasi.de
web:www.daasi.de
Sitz der Gesellschaft: Tübingen
Registergericht: Amtsgericht Stuttgart, HRB 382175
Geschäftsleitung: Peter Gietz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20220202/74f63e19/attachment-0001.htm>


More information about the midPoint mailing list