[midPoint] Resource CSV

Pálos Gustáv gustav.palos at evolveum.com
Sun Nov 5 21:28:30 CET 2017


Hi Jan,

do you have "fullname" column (with the same cases) in your CSV file in the
header?
If yes, please delete <schema> section in resource, reTest the resource and
try again (maybe you changes CSV file structure from last schema parsing)

If you don't have this column and you need to generate full name from
givenName and familyName, please see object templates:
https://wiki.evolveum.com/display/midPoint/Object+Template#ObjectTemplate-Examples

best regards,

Gustav

2017-11-05 21:15 GMT+01:00 Jan Kaspar <Caspi at seznam.cz>:

> Hello,
>
> i am trying to setup base lab environment similar to book example. But i
> have few troubles from beginning.
> currenbt version is 3.6.1 and examples like resource for importing CSV not
> work anymore.
>
> So I am trying to create it from scratch. I have simple problem:
>
> part of my definition is:
>
>     <schemaHandling>
>         <objectType>
>             <displayName>Default Account</displayName>
>             <default>true</default>
>             <objectClass>ri:AccountObjectClass</objectClass>
>             <attribute>
>                 <ref>ri:guid</ref>
> <displayName>id</displayName>
>                 <limitations>
>                     <access>
>                         <read>true</read>
>                     </access>
>                 </limitations>
>             </attribute>
>
>             <attribute>
>                 <ref>ri:username</ref>
>                 <inbound>
>                     <target>
>                         <path>$user/name</path>
>                     </target>
>                 </inbound>
>             </attribute>
>
>             <attribute>
>                 <ref>ri:firstname</ref>
>                 <displayName>First name</displayName>
>                 <inbound>
>                     <target>
>                         <path>$user/givenName</path>
>                     </target>
>                 </inbound>
>             </attribute>
>
>             <attribute>
>                 <ref>ri:lastname</ref>
>                 <displayName>Last name</displayName>
>                 <inbound>
>                     <target>
>                         <path>$user/familyName</path>
>                     </target>
>                 </inbound>
>             </attribute>
>
> <attribute>
>                 <ref>ri:fullname</ref>
>                 <displayName>Full name</displayName>
> <inbound>
> <target>
> <path>$user/familyName</path>
> </target>
>                     <expression>
>                         <script>
>                             <code>
>                                 givenName + ' ' + familyName
>                             </code>
>                         </script>
>                     </expression>
>                 </inbound>
>             </attribute>
>
>             <activation>
>                 <administrativeStatus>
>                     <inbound/>
>                 </administrativeStatus>
>             </activation>
>
> but with this example i for error:
>
> Schema error while processing schemaHandling section of
> resource:ef2bc95b-76e0-59e2-86d6-9999cccccccc(Test CSV1): Definition of
> attribute fullname not found in object class {http://midpoint.evolveum.com/
> xml/ns/public/resource/instance-3}AccountObjectClass as defined in
> definition of resource:ef2bc95b-76e0-59e2-86d6-9999cccccccc(Test CSV1):
> Schema error while processing schemaHandling section of
> resource:ef2bc95b-76e0-59e2-86d6-9999cccccccc(Test CSV1): Definition of
> attribute fullname not found in object class {http://midpoint.evolveum.com/
> xml/ns/public/resource/instance-3}AccountObjectClass as defined in
> definition of resource:ef2bc95b-76e0-59e2-86d6-9999cccccccc(Test CSV1)
>
>
> Operationoperation.com.evolveum.midpoint.web.page.admin.
> resources.PageResource.loadResourceMessageSchema error while processing
> schemaHandling section of resource:ef2bc95b-76e0-59e2-86d6-9999cccccccc(Test
> CSV1): Definition of attribute fullname not found in object class {
> http://midpoint.evolveum.com/xml/ns/public/resource/
> instance-3}AccountObjectClass as defined in definition of
> resource:ef2bc95b-76e0-59e2-86d6-9999cccccccc(Test CSV1): Schema error
> while processing schemaHandling section of resource:ef2bc95b-76e0-59e2-86d6-9999cccccccc(Test
> CSV1): Definition of attribute fullname not found in object class {
> http://midpoint.evolveum.com/xml/ns/public/resource/
> instance-3}AccountObjectClass as defined in definition of
> resource:ef2bc95b-76e0-59e2-86d6-9999cccccccc(Test CSV1)
> Can anyone help me? what if i have csv with address, cell phone, work
> phone etc. I stuck on begining of my tests so not good.
>
> Thanks
>
> Jan
>
>
> _______________________________________________
> 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/20171105/3e499871/attachment.htm>


More information about the midPoint mailing list