What does HRESULT 0x80005005 (E_ADS_PROPERTY_NOT_SET) mean?

 
Previous Next
E_ADS_UNKNOWN_OBJECT E_ADS_PROPERTY_NOT_SUPPORTED

E_ADS_PROPERTY_NOT_SET

E_ADS_PROPERTY_NOT_SET is not the same condition as an unsupported attribute or a property missing from the local ADSI cache. It indicates that the property being queried has no value set for the current object in the relevant directory context.

Distinguish an unset value from cache and schema failures

  • Check the object class and schema to confirm whether the attribute is optional or mandatory for that class.
  • Refresh the required attribute with GetInfo or GetInfoEx when stale cache state is possible.
  • Treat an optional attribute with no value as application data state; do not automatically create a placeholder unless the directory contract requires one.

ADSI reads values through a local property cache. Microsoft documents separate errors for unsupported properties and properties not found in that cache, so those conditions should not be collapsed into this status. When diagnosing a provisioning path, log whether the property was read before or after a cache refresh and whether the object was newly created. For writes, remember that Put/PutEx change the local cache and SetInfo commits it.

Generic ADSI errors · ADSI attribute cache · Modifying attributes


Looking for a different code? Search another status or error code.