[midPoint] Importing multiple accounts

Ivan Noris ivan.noris at evolveum.com
Fri Nov 25 10:06:49 CET 2016


Hi Aivo,


according to this:


(com.evolveum.midpoint.model.impl.sync.SynchronizationServiceImpl):
SYNCHRONIZATION: Error in synchronization on
resource:920cc5ee-ef7e-4d7b-9bcd-cc4edf60439e(HR users) for situation
UNMATCHED: ObjectAlreadyExistsException: Error processing
focus(user:null(john.smith)): constraint violation: *Found conflicting
existing object with property name =
PP({.../common/common-3}name):[PPV(PolyString:john.smith)]:
user:c74b5771-f8dc-4929-83a1-2afbf2a8f875(john.smith)*.


I assume you are trying to create john.smith user in midPoint and the
same name is already used. I assume the problem must be in correlation,
and the situation should be UNLINKED and become LINKED afterwards.

But I think there is another problem: in midPoint you can have more than
one accounts on the same resource, but they cannot be with the same
intent. And in your case, the number of "accounts" for the same person
is variable... I don't remember to have this situation. Maybe someone else?

Regards,
Ivan

On 11/25/2016 07:33 AM, Aivo Kuhlberg wrote:
>
> Hi Ivan,
>
> Unique attribute is "sapcode".
>
>
> Regards,
>
> Aivo
>
>
> ------------------------------------------------------------------------
> *Saatja:* midPoint <midpoint-bounces at lists.evolveum.com> nimelIvan
> Noris <ivan.noris at evolveum.com>
> *Saadetud:* 24. november 2016 23:22
> *Adressaat:* midpoint at lists.evolveum.com
> *Teema:* Re: [midPoint] Importing multiple accounts
>  
>
> Hi Aivo,
>
> what attribute is configured as unique identifier in your CSV
> resource....?
>
> Ivan
>
>
> On 11/24/2016 10:18 PM, Aivo Kuhlberg wrote:
>>
>> Hello,
>>
>> In our HR system the same person can appear multiple times, for
>> example when he/she has 2 jobs.  My problem is how to import these
>> users to midPoint? Even when the same user appears multiple times in
>> HR system I want to see in midPoint only one user. So I believe I
>> have to import both accounts under one midPoint user where these
>> should appear as separate projections.
>>
>> Below is the example CSV-file which I tested. Here I try to import
>> the same user multiple times and in synchronization settings I am
>> correlating users by personalcode attribute which is unique for every
>> person:
>>
>>
>> "sapcode","personalcode","firstname","lastname","email","title"
>> "8000001","10101010001","John","Smith","john.smith at org.com","Specialist"
>> "8000011","10101010001","John","Smith","john.smith at org1.com","Adviser"
>>  
>>
>> Unfortunately when I import that file then first line is imported
>> successfully but second line fails:
>>
>>
>> 2016-11-24 22:31:38,733 [] [midPointScheduler_Worker-5] INFO
>> (com.evolveum.midpoint.model.impl.util.AbstractSearchIterativeResultHandler):
>> Import object shadow:d8cb8f9d-4209-42c8-8d97-7f9392e86edd(8000001)
>> from resource:920cc5ee-ef7e-4d7b-9bcd-cc4edf60439e(HR users) done
>> with status SUCCESS (this one: 352 ms, avg: 352 ms) (total progress:
>> 1, wall clock avg: 434 ms)
>> 2016-11-24 22:31:38,897 [] [midPointScheduler_Worker-5] ERROR
>> (com.evolveum.midpoint.model.impl.sync.SynchronizationServiceImpl):
>> SYNCHRONIZATION: Error in synchronization on
>> resource:920cc5ee-ef7e-4d7b-9bcd-cc4edf60439e(HR users) for situation
>> UNMATCHED: ObjectAlreadyExistsException: Error processing
>> focus(user:null(john.smith)): constraint violation: Found conflicting
>> existing object with property name =
>> PP({.../common/common-3}name):[PPV(PolyString:john.smith)]:
>> user:c74b5771-f8dc-4929-83a1-2afbf2a8f875(john.smith). Change was
>> ResourceObjectShadowChangeDescription(objectDelta=ObjectDelta(ShadowType:48764d07-8db2-4555-ac5a-4d7c5a9f446b,ADD:
>> shadow:48764d07-8db2-4555-ac5a-4d7c5a9f446b(8000011)),
>> currentShadow=shadow:48764d07-8db2-4555-ac5a-4d7c5a9f446b(8000011),
>> oldShadow=null,
>> sourceChannel=http://midpoint.evolveum.com/xml/ns/public/provisioning/channels-3#import,
>> resource=resource:920cc5ee-ef7e-4d7b-9bcd-cc4edf60439e(HR users)
>>
>>
>> What I am doing wrong?
>>
>> Thanks,
>>
>> Aivo Kuhlberg
>>
>>
>> ------------------------------------------------------------------------
>> Käesolev e-kiri võib sisaldada asutusesiseseks kasutamiseks
>> tunnistatud teavet.
>> This e-mail may contain information which is classified for official
>> use.
>>
>>
>> _______________________________________________
>> midPoint mailing list
>> midPoint at lists.evolveum.com
>> http://lists.evolveum.com/mailman/listinfo/midpoint
>
> -- 
> Ivan Noris
> Senior Identity Engineer
> evolveum.com
>
> ------------------------------------------------------------------------
> Käesolev e-kiri võib sisaldada asutusesiseseks kasutamiseks
> tunnistatud teavet.
> This e-mail may contain information which is classified for official use.
>
>
> _______________________________________________
> midPoint mailing list
> midPoint at lists.evolveum.com
> http://lists.evolveum.com/mailman/listinfo/midpoint

-- 
Ivan Noris
Senior Identity Engineer
evolveum.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20161125/79bc31c0/attachment.htm>


More information about the midPoint mailing list