[midPoint] non existent attribute in resources account-view causes ERROR

Pálos Gustáv gustav.palos at evolveum.com
Thu Oct 4 10:02:14 CEST 2018


Hello Fabian,

most likely you have the wrong config. Can you send also the
anonymized content of the file?
Is enough the header and first line.

Hints what you can verify:
- is fieldDelimiter really ";"?
- what is valueQualifier? Why you use 'quote' and  quoteMode=ALL ?
- do you need multivalueDelimiter or you can set  usingMultivalue=false?
Please see samples and his data files for inspiration:
https://github.com/Evolveum/midpoint/blob/master/samples/resources/csvfil

Best regards,

Gustav


št 4. 10. 2018 o 9:29 Fabian Bosch <fabian.bosch at daasi.de> napísal(a):

> Hello
>
> I have a strange problem:
>
> I have a simple CSV-resouce setup. the schema is loading properly and
> connection is established. I have a simple schemaHandling and a default
> synchronisation to create users. I have no accounts imported yet.
> If I want to list the accounts in GUI within the resource (toggeling
> between show repository/*ressource*) I get a severe Error:
> Aktion(en)
> *operation.com.evolveum.midpoint.model.api.ModelService.searchObjects*
> Meldung Couldn't search objects in provisioning Parameter
> searchProvider [PROVISIONING]
> query [Q{AND(REF:
> resourceRef,PRV(oid=a1ab45e7-9e7a-42fa-a60f-7c5559dd1ac4,
> targetType=null),EQUAL: kind,PPV(ShadowKindType:ACCOUNT),EQUAL:
> intent,PPV(String:default)),PAGING: O: 0,M: 20,,]
> type [
> http://midpoint.evolveum.com/xml/ns/public/common/common-3#ShadowType]
>
> Fehler Got unexpected exception: java.lang.IllegalArgumentException*: The
> Attribute set must contain a 'Name'*.showcom.evolveum.midpoint.util.exception.SystemException:
> Got unexpected exception: java.lang.IllegalArgumentException: The Attribute
> set must contain a 'Name'.
>
> 	at com.evolveum.midpoint.provisioning.ucf.impl.connid.ConnectorInstanceConnIdImpl.search(ConnectorInstanceConnIdImpl.java:2380)
> 	at com.evolveum.midpoint.provisioning.impl.ResourceObjectConverter.searchResourceObjects(ResourceObjectConverter.java:1245)
> 	at com.evolveum.midpoint.provisioning.impl.ShadowCache.searchObjectsIterative(ShadowCache.java:1696)
> 	at com.evolveum.midpoint.provisioning.impl.ShadowCache.searchObjectsIterative(ShadowCache.java:1578)
> 	at com.evolveum.midpoint.provisioning.impl.ProvisioningServiceImpl.searchObjectsIterative(ProvisioningServiceImpl.java:999)
> 	at com.evolveum.midpoint.provisioning.impl.ProvisioningServiceImpl.searchObjects(ProvisioningServiceImpl.java:456)
> 	at com.evolveum.midpoint.model.impl.controller.ModelController.searchObjects(ModelController.java:795)
> 	at com.evolveum.midpoint.web.component.data.SelectableBeanObjectDataProvider.internalIterator(SelectableBeanObjectDataProvider.java:182)
> 	at com.evolveum.midpoint.web.component.data.BaseSortableDataProvider.iterator(BaseSortableDataProvider.java:267)
> 	at org.apache.wicket.markup.repeater.data.DataViewBase$ModelIterator.<init>(DataViewBase.java:107)
> 	at org.apache.wicket.markup.repeater.data.DataViewBase.getItemModels(DataViewBase.java:74)
> 	at org.apache.wicket.markup.repeater.AbstractPageableView.getItemModels(AbstractPageableView.java:101)
> 	at org.apache.wicket.markup.repeater.RefreshingView.onPopulate(RefreshingView.java:93)
> 	at org.apache.wicket.markup.repeater.AbstractRepeater.onBeforeRender(AbstractRepeater.java:124)
> 	at org.apache.wicket.markup.repeater.AbstractPageableView.onBeforeRender(AbstractPageableView.java:115
>
>
> strange, because I have no "set" Attribute anywhere in my resource.
>
>
> setup:
>
> midPoint v3.8
> CSV-connector v2.2
>
> Connector-configuration
>
>    <connectorConfiguration xmlns:icfc="http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/connector-schema-3" <http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/connector-schema-3>>
>       <icfc:configurationProperties xmlns:gen883="http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/bundle/com.evolveum.polygon.connector-csv/com.evolveum.polygon.connector.csv.CsvConnector" <http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/bundle/com.evolveum.polygon.connector-csv/com.evolveum.polygon.connector.csv.CsvConnector>>
>          <gen883:multivalueDelimiter>,</gen883:multivalueDelimiter>
>          <gen883:ignoreEmptyLines>true</gen883:ignoreEmptyLines>
>          <gen883:fieldDelimiter>;</gen883:fieldDelimiter>
>          <gen883:quote>"</gen883:quote>
>          <gen883:filePath>/var/midpoint-3.8-home/resources/mP_didmos_user-Import.csv</gen883:filePath>
>          <gen883:quoteMode>ALL</gen883:quoteMode>
>          <gen883:readOnly>false</gen883:readOnly>
>          <gen883:encoding>utf-8</gen883:encoding>
>          <gen883:nameAttribute>sapid</gen883:nameAttribute>
>          <gen883:uniqueAttribute>ucrmpid</gen883:uniqueAttribute>
>       </icfc:configurationProperties>
>    </connectorConfiguration>
>
>
> Where is the problem here?
>
> regards
>
>
> --
>     --
>     Fabian Bosch, Solutions-Engineer
>
>     DAASI International GmbH
>     Europaplatz 3
>     D-72072 Tübingen
>     Germany
>
>     phone: +49 7071 407109-0
>     fax:   +49 7071 407109-9
>
>     email: fabian.bosch at daasi.de
>     web:   www.daasi.de
>
>     Sitz der Gesellschaft: Tübingen
>     Registergericht: Amtsgericht Stuttgart, HRB 382175
>     Geschäftsleitung: Peter Gietz
>
> _______________________________________________
> midPoint mailing list
> midPoint at lists.evolveum.com
> http://lists.evolveum.com/mailman/listinfo/midpoint
>


-- 
Gustáv Pálos
Identity Engineer
evolveum.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20181004/7b5d40f2/attachment.htm>


More information about the midPoint mailing list