[midPoint] CSV resource import fails: No object class found for the shadow
Mercedes Oncina Deltell
moncina at um.es
Wed Feb 2 14:18:51 CET 2022
Thank you very much. I have forgotten the synchronization part (I am
very beginner with midPoint).
Now, I have defined all parts:
Now, I can see all the records in the CSV, but there is no "Situation"
defined, if I try to import a single record:
The result seems to be fine:
But there is no linked account in the repository, I can see all the
accounts with state "Nothing":
Thanks!
El 02/02/2022 a las 13:52, Fabian Noll-Dukiewicz escribió:
> 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*
> *
> *
> *
> *
> *Schema (automatically generated by midPoint)*
> *
> *
> *
> *
> *Schema handling*
> *
> *
> *
> *
> *Synchronization*
> *
> *
>
> *
> *
>
> 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 <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
--
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/46c340c2/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: QTijidwrNF1e1h8K.png
Type: image/png
Size: 8979 bytes
Desc: not available
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20220202/46c340c2/attachment-0013.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 8cF7cbKuG810Sl7j.png
Type: image/png
Size: 9579 bytes
Desc: not available
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20220202/46c340c2/attachment-0014.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: eWeXU8gya0Z231kE.png
Type: image/png
Size: 31251 bytes
Desc: not available
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20220202/46c340c2/attachment-0015.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pDl0OOzeUu7RQQAq.png
Type: image/png
Size: 34218 bytes
Desc: not available
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20220202/46c340c2/attachment-0016.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: QhNXn4TGpymS0W6f.png
Type: image/png
Size: 37670 bytes
Desc: not available
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20220202/46c340c2/attachment-0017.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sTN4kI7H0nIDsmgm.png
Type: image/png
Size: 37769 bytes
Desc: not available
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20220202/46c340c2/attachment-0018.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pI0eaR0Pt0Uj1AxJ.png
Type: image/png
Size: 11597 bytes
Desc: not available
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20220202/46c340c2/attachment-0019.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dW0spDyQ8RuT1JSx.png
Type: image/png
Size: 36823 bytes
Desc: not available
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20220202/46c340c2/attachment-0020.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 27070 bytes
Desc: not available
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20220202/46c340c2/attachment-0021.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 39929 bytes
Desc: not available
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20220202/46c340c2/attachment-0022.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 38452 bytes
Desc: not available
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20220202/46c340c2/attachment-0023.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 31045 bytes
Desc: not available
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20220202/46c340c2/attachment-0024.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 20185 bytes
Desc: not available
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20220202/46c340c2/attachment-0025.png>
More information about the midPoint
mailing list