| Previous | Next |
| QUERY_E_RELDOC_SYNTAX_NOT_SUPPORTED | QUERY_E_INCORRECT_VERSION |
QUERY_E_INVALID_DOCUMENT_IDENTIFIER
QUERY_E_INVALID_DOCUMENT_IDENTIFIER means the relevance input fails identifier validation before document lookup can succeed. It should be separated from QUERY_E_NO_RELDOC, where identifiers are syntactically acceptable but no relevant document can be found.
Validate identifier construction before testing catalog contents
- Log the raw identifier and the final encoded value passed to the provider.
- Check truncation, quoting, separators, and transformations performed by generic SQL or URI helpers.
- After the identifier is syntactically valid, query the same catalog to determine whether the document actually exists.
The Windows Search catalog represents indexed items as rows with properties such as item URLs, while query APIs can be reached through OLE DB or helper layers. An identifier built in the wrong representation can fail before any catalog lookup. Do not rebuild the index as a first response to a malformed identifier; fix the producer and then distinguish “valid but missing” with the separate no-relevant-document code.
Legacy query errors · Windows Search catalog model · Query helper
Looking for a different code? Search another status or error code.