- 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-29-2020 08:47 AM
Can you post the ecc_queue entries for these attempts, or at least confirm what the MID Server is actually sending over?
- 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
‎02-09-2022 04:35 AM
Hi Ken,
You seem to have found the answer to my issue.
I am trying to update the manager for and existing AD user and keep getting 'A constraint violation occurred. HRESULT: [-2147016657] ' errors.
I am not that skilled with Java Script so I know its cheeky but are you able to show exactly what you did? Not sure of the syntax I need to use.
I have been trying for a while now and not getting anywhere!!
Hope you are able to help
Thanks
Steve