Getting error while creating a User in ADUC through a Custmoized IDM code .

deepak dinesh 1 Reputation point
2022-02-03T05:29:42.62+00:00

Hello Team,

We are getting an error while creating users in ADUC through a customized IDM code, below is the error.
I am not a developer but i can bring any other Info /Errors if required .

====================================================================================================
System.DirectoryServices.DirectoryServicesCOMException (0x8007202F): A constraint violation occurred. at System.DirectoryServices.DirectoryEntry.CommitChanges()
at IDM.ActiveDirectory.CreateUserExchange(NewEmployeeRequest newEmployeeRequest, AdUpdateUser userinfo, String OU, String managerusername, String cpr, String displayname)

System.DirectoryServices.DirectoryServicesCOMException (0x8007202F): A constraint violation occurred.

Regards
Deepak

Windows for business | Windows Client for IT Pros | Directory services | Active Directory
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Gary Reynolds 9,621 Reputation points
    2022-02-03T07:04:34.73+00:00

    Hi @deepak dinesh

    The 'A constraint violation occurred' error normally occurs if an attribute included in the object create request doesn't meet the defined requirements for the attribute i.e. value is not a DN, not a valid country code, trying to update a backlink attribute, system attribute.

    The suggestion would be iteratively remove attributes from the creation request to see which one is causing the problem.

    Gary.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.