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.