Constraint Error Trying to Update an Attribute Value in PeopleUpdate

Constraint Error Trying to Update an Attribute Value in PeopleUpdate

When trying to update an attribute on the PeopleUpdate Edit page, you may encounter an error similar to the following. The application page will say “Could not update the entry data. Please consult your system administrator for assistance” while the error and event log will have the following entry.

Exception occurred in System.DirectoryServices: The requested operation did not satisfy one or more constraints associated with the class of the object.
at System.DirectoryServices.DirectoryEntry.CommitChanges()
at WAD.PeopleUpdate.Web.Helper.EditPageHelperImplementation.UpdateDirectory()
Target Site: Void CommitChanges()

In this scenario, check the editable attributes on the Edit page and ensure that there are no spaces in “blank” attribute values. You can do this by putting the cursor in an editable item and checking to see if the highlighted value shows a space. This also can be caused by truly blank values trying to update an attribute like location or description, particularly in a multi-valued attribute. Just make sure to put in a data value for the failing attribute and it should update fine.

If these solutions don’t work, remove the attribute from the Details page so that it only shows on the Edit page.

    • Related Articles

    • The attribute syntax specified to the directory service is invalid error when updating users

      PeopleUpdate cannot update user data and shows error log message: “The attribute syntax specified to the directory service is invalid.” This only seems to occur for random users. Issue Description When you try to update a user’s information in ...
    • System.Xml error in PeopleUpdate and PeopleSearch

      You might see the following error in your PeopleUpdate error log and note that PeopleUpdate will not query Active Directory properly in this situation. Exception occurred in System.Xml: '<', hexadecimal value 0x3C, is an invalid attribute character. ...
    • Add a multi-valued attribute in PeopleUpdate

      PeopleUpdate allows you to edit multi-valued attributes in Active Directory. With multi-valued attributes, the Edit page shows multiple text boxes with an Add button to allow you to add and delete values to and from the attribute. In some cases, ...
    • Edit a multi-valued attribute as a single-valued attribute in PeopleUpdate

      You might want to show a multi-valued editable attribute in Active Directory as a single edit box instead of multiple boxes with an Add button. Use the information below to set this up. Background PeopleUpdate queries the Active Directory schema for ...
    • Deserializing error in PeopleUpdate

      You might see the following error in your event log for PeopleUpdate. Application Error A critical application error occurred that could not be handled by the system. Please report the following information to your system administrator. Error ...