What does Windows error code 8570 (ERROR_DS_NOT_SUPPORTED_SORT_ORDER) mean?

 
Previous Next
ERROR_DS_NO_BEHAVIOR_VERSION_IN_MIXEDDOMAIN ERROR_DS_NAME_NOT_UNIQUE

ERROR_DS_NOT_SUPPORTED_SORT_ORDER

Server-side sorting depends on attribute syntax and matching rules

ERROR_DS_NOT_SUPPORTED_SORT_ORDER means the directory cannot apply the requested ordering to search results. An LDAP sort control names one or more attributes and may specify a matching-rule OID and reverse order. The server must support the control and an ordering rule compatible with each sort-key attribute’s syntax.

Read supportedControl from rootDSE, inspect the request control OID and BER value, and test one sort key at a time. Use an attribute with a defined ordering behavior; multivalued, constructed, binary, or application-specific attributes may not provide the intended total order. Parse the response-sort control rather than assuming the search call’s outer result reports the key failure. If stable pagination matters, include a deterministic secondary key such as a unique identifier and account for directory changes between pages.

Sort diagnostics

  • Requested key sequence and reverse-order flags.
  • Matching-rule OID, if explicitly supplied.
  • Attribute syntax and single/multivalue status.
  • Result code and failed-attribute field from the response control.

References


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