A constraint violation occurred - Update AD Object

Ken83
Mega Guru

Hello Community,

I am trying to update the manager for a user in Active Directory. I have referred to several of the other posts here on the community but I have not located anything that addresses this error. The error message is A constraint violation occurred. See below.

find_real_file.png

The values being passed into the object look like this...

find_real_file.png

 

The object name resolves to the sAMAccountName value. The object data resolves to {"manager":"CN=VALUE\, VALUE,OU=VALUE,DC=VALUE,DC=VALUE"}

Any ideas why this would be throwing the error?

 

1 ACCEPTED SOLUTION

Ken83
Mega Guru

I found a solution to this problem. I needed to complete my object in a separate Run Script activity and then JSON.stringify it before setting it on the scratchpad. Then I was able to use the scratchpad value in the Update AD Object activity. Works fine now.

View solution in original post

7 REPLIES 7

Community Alums
Not applicable

This suggests that AD does not like the value you are trying to set. 

Do you have access to the AD logs to see which value is being set incorrectly?

I don't have access to the logs unfortunately. I can't seem to find any value that it likes

Matthew Glenn
Kilo Sage

Give this thread a quick read. It may have what you're looking for

Thanks for the link. I read that article already and I've tried escaping with 1,2,3, and 4 \ but I get the same result each time.