Insert DepartmentHasADSGroup via process chain results in a "Violation of PRIMARY KEY constraint ... Cannot insert duplicate key in object" - Error

This error does not occur when i assign the same assignment in the manager.

And this is my expected behavior.

Before the assignment, i have an indirect assignment and after the assignment i want to have a direct, indirect assignment (Xorigin = 3).

But One Identity does not seem to allow it to do this direct assignment via process chain which would be a misbehavior.

Can you tell me what to do to make a direct assignment in a process chain?

Regards,

Alexander

Parents Reply
  • Hi Alexander,

    Hmmm looks like when you call the AssignDirect method in OB it works as you say but you get no option to 'save' the object ..... and that's the issue .... after calling the method you have to save the object.  So in a script you would have these lines:

                                                                baseObjectN.CallMethod("AssignDirect")

                                                                baseObjectN.Save(Session)

    In a process you would use the HandleObjectComponent - CallMethod process task and in the parameters enable Save with Value = True

    HTH, Barry.

Children