[midPoint] change ArcheType on import/livesynch

Pavol Mederly mederly at evolveum.com
Tue Oct 17 10:06:12 CEST 2023


Hello Markus,

midPoint has a standard solution to this - just look for "mapping range" 
in the docs.

[Yes, midPoint is complex, but that's because the real life is complex. 
Of course, we try hard to remove all the unnecessary complexity from it. 
But something will necessarily remain. Fortunately, this particular 
problem you stumbled upon has a really nice and elegant solution in 
midPoint.]

-- 
Pavol Mederly
Software developer
evolveum.com

On 16/10/2023 16:58, Markus Calmius via midPoint wrote:
> Hi,
>
> the complexity of this product is sometimes mind-boggling. You think 
> you understand something, and then: stacktrace ;)
>
> So, I read this "In this demo, we use archetypes |Full time employee|, 
> |Part time employee|, |Contractor|, and |Retired|. Archetype is 
> assigned to a user during import from resource based on his employment 
> type"
> from: https://docs.evolveum.com/midpoint/demo/
>
> and I'm doing something similar. Basically we have a column in the csv 
> file that has one of three values:
> pre-employee
> current-employee
> post-employee
>
> I created ArcheTypes for these different kind of users, then 
> automatically assigned them on import. All good.
> However, if I change the value and re-import (or use live synch) I get:
> "ERROR 
> (com.evolveum.midpoint.model.impl.sync.reactions.SynchronizationActionExecutor): 
> SYNCHRONIZATION: Error in synchronization on 
> resource:<redacted_resource> for situation LINKED: SchemaException: 
> Found [archetype:<oid>(pre_employee), 
> archetype:<oid>(current_employee)] structural archetypes; only a 
> single one is supported"
>
> I removed oids to make it easier to read.
> Do I need to check (another hook?) if a user changes archetype and 
> remove the previous one first? It seems a bit...well unnecessary. If 
> the attribute input is set to strong it should be replaced, right?
>
>
>
> Markus
>
>
> _______________________________________________
> midPoint mailing list
> midPoint at lists.evolveum.com
> https://lists.evolveum.com/mailman/listinfo/midpoint
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20231017/816e739d/attachment.htm>


More information about the midPoint mailing list