| Previous | Next |
| WINCODEC_ERR_UNEXPECTEDSIZE | WINCODEC_ERR_UNEXPECTEDMETADATATYPE |
WINCODEC_ERR_INVALIDQUERYREQUEST
A valid-looking query can be invalid in the current metadata tree
WINCODEC_ERR_INVALIDQUERYREQUEST means WIC could not execute the metadata query as requested. Query expressions navigate a hierarchy of metadata blocks and items; a path valid at the decoder root can be invalid for a frame-level reader, and a write query can target a block that the container does not expose or that requires creation through a policy expression.
This differs from WINCODEC_ERR_INVALIDQUERYCHARACTER, which identifies an illegal character in the expression itself. Here the investigation should include the reader or writer’s current metadata location, the container format, and whether the operation is a read, remove, or set. Copying a query from JPEG to PNG without adapting its native block path is a common mismatch.
Query-context checks
- Record the exact query string and the metadata reader or writer location.
- Confirm whether the operation runs at decoder, frame, or nested block scope.
- Use the native query mapping for the actual container format.
- Create missing metadata blocks through supported policy or block-writer operations before setting child items.
References
- Microsoft: metadata query language
- Microsoft: format-specific metadata paths
- Microsoft: query readers and writers
Looking for a different code? Search another status or error code.