[midPoint] Issues importing CSV-file to "Users"

Wojciech Staszewski wojciech.staszewski at diagnostyka.pl
Mon Dec 4 13:30:02 CET 2017


Hello!

I was exactly at the same point 1,5 years ago.
At the first contact midPoint seems to be unable to understand by human being ;), but belive me, after a year of intense exploration it becomes quite logic.

First what I see, that you have defined "Linked" situation with "AddFocus" reaction. So, if you have account "linked" with IDM user you're trying to create another focus (user) in IDM.

Try this:

<reaction>
    <situation>linked</situation>
     <synchronize>true</synchronize>
</reaction>

W dniu 04.12.2017 o 13:07, Christian Skøt Hoelgaard pisze:
> Hi all,
> 
>  
> 
> I am in the process of exploring the possibilities of midPoint to see if it is a viable IDM solution for my organization.
> 
>  
> 
> So now I have been “trial-and-erroring” for a couple of weeks – trying to get an understanding of the concept…  :o)
> 
>  
> 
> I am beginning to grasp the workings of resources, but I still seems like things are not working as they should.
> 
>  
> 
> Presently I am trying to make a simple (?) import of users from a CSV file. I have managed to import them manually (“Cog” > “Import”) from the “Accounts” view of the resource. But any form of synchronization is simply not happening. If I make changes in the CSV I need to manually do a reconciliation (in the “User” view) for the changes to take effect.
> 
>  
> 
> For every single account the result in the above view is “FailedOperationTypeType.null:Fatal Error” and the error message is this:
> 
>  
> 
> Operation: operation.com.evolveum.midpoint.schema.result.searchResult
> 
> Message: Failed to import: com.evolveum.midpoint.util.exception.ConfigurationException: Action definition in resource resource:86b229c0-7396-45f0-b1bd-f11e732ffe59(CSV Import Test) doesn't contain handler URI
> 
>  
> 
> I don’t understand this, as the oid of the resource is in fact “86b229c0-7396-45f0-b1bd-f11e732ffe59” and the XML has a “handlerUri” for each action defined:
> 
>  
> 
> <synchronization>
> 
>       <objectSynchronization>
> 
>          <name>SyncCsvUser</name>
> 
>          <kind>account</kind>
> 
>          <focusType>c:UserType</focusType>
> 
>          <enabled>true</enabled>
> 
>          <correlation>
> 
>             <q:description>Correlation</q:description>
> 
>             <q:equal>
> 
>                <q:path>c:name</q:path>
> 
>                <expression xmlns="">
> 
>                   <path>$c:account/c:attributes/ri:samaccountname</path>
> 
>                </expression>
> 
>             </q:equal>
> 
>          </correlation>
> 
>          <reconcile>false</reconcile>
> 
>          <reaction>
> 
>             <situation>linked</situation>
> 
>             <synchronize>true</synchronize>
> 
>             <reconcile>false</reconcile>
> 
>             <action>
> 
>                <handlerUri>http://midpoint.evolveum.com/xml/ns/public/model/action-3#addFocus</handlerUri>
> 
>             </action>
> 
>          </reaction>
> 
>          <reaction>
> 
>             <situation>deleted</situation>
> 
>             <synchronize>true</synchronize>
> 
>             <reconcile>false</reconcile>
> 
>             <action>
> 
>                <handlerUri>http://midpoint.evolveum.com/xml/ns/public/model/action-3#inactivateFocus</handlerUri>
> 
>             </action>
> 
>          </reaction>
> 
>          <reaction>
> 
>             <situation>unlinked</situation>
> 
>             <synchronize>true</synchronize>
> 
>             <reconcile>false</reconcile>
> 
>             <action>
> 
>                <handlerUri>http://midpoint.evolveum.com/xml/ns/public/model/action-3#link</handlerUri>
> 
>             </action>
> 
>          </reaction>
> 
>          <reaction>
> 
>             <situation>unmatched</situation>
> 
>             <reconcile>false</reconcile>
> 
>             <action>
> 
>                <handlerUri>http://midpoint.evolveum.com/xml/ns/public/model/action-3#addFocus</handlerUri>
> 
>             </action>
> 
>          </reaction>
> 
>       </objectSynchronization>
> 
>    </synchronization>
> 
>  
> 
> I hope someone can point me in the right direction, so I can get on testing. Thanks in advance!
> 
>  
> 
>  
> 
> Kind regards,
> 
>  
> 
> *Christian Skøt Hoelgaard*
> 
> IT Support Specialist
> 
> www.frederikssund.dk
> 
>  
> 
> 
> 
> _______________________________________________
> midPoint mailing list
> midPoint at lists.evolveum.com
> http://lists.evolveum.com/mailman/listinfo/midpoint
>



More information about the midPoint mailing list