| Previous | Next |
| ERROR_DS_NOT_SUPPORTED | ERROR_DS_CONTROL_NOT_FOUND |
ERROR_DS_NO_RESULTS_RETURNED
No results were returned.
ERROR_DS_NO_RESULTS_RETURNED is Win32 error 8257 (0x00002041) and concerns an Active Directory operation that completed without returning result objects.
What to verify
Verify whether the caller distinguishes an empty result set from transport, authorization, and parsing failures. Check LDAP filter, base, and scope, contacted DC and naming context, and result count and server controls.
Likely causes
- the search filter matches no objects.
- the search base or scope is wrong.
- replication has not delivered the expected object.
- the requested control or operation legitimately produces no returned entry.
Troubleshooting steps
- Collect LDAP filter, base, and scope.
- Record contacted DC and naming context.
Handling, retry, and recovery
Validate the query and authority, then treat an empty set according to application semantics rather than converting it into a generic directory outage.
Related errors
ERROR_POLICY_OBJECT_NOT_FOUND is policy-specific; this code applies to a directory operation with no returned results
Example
A lookup uses one-level scope against the parent of the expected container and receives no results. Changing to the correct subtree scope returns the object.
References
Looking for a different code? Search another status or error code.