The agent reports "The attribute syntax specified to the directory service is invalid"


Symptoms

When setting custom attributes in Active Directory you may receive the following error:

The attribute syntax specified to the directory service is invalid. (Exception from HRESULT: 0x8007200B)



Cause

This error can typically occur if you are setting the custom attribute to a value type that is invalid - for example setting a string value when the directory service is expecting an integer value.



Resolution

Ensure the "Commit Immediately" setting is enabled and rerun the task. The specific Active Directory attribute that is configured incorrectly will be displayed in the error message. Review the Microsoft documentation for this attribute and correct the value with the correct data type.



Video

Watch the video: The attribute syntax specified to the directory service is invalid.