- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2020 02:48 PM
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.
The values being passed into the object look like this...
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?
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2020 02:03 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2020 03:04 PM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2020 06:09 AM
I don't have access to the logs unfortunately. I can't seem to find any value that it likes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2020 03:06 PM
Give this thread a quick read. It may have what you're looking for
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2020 06:10 AM
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.