# X_QUERY_DEPRECATION_INVALID

## Means

a query declares a deprecation whose dates cannot be rendered

## Typical cause

a `deprecated: { since, sunset }` value that is not a date — the mirror of `X_ACTION_DEPRECATION_INVALID`, refused where the declaration is converted so every projection that reads it refuses the same value

## Fix

edit `deprecated: { <field>: … }` on the query to an ISO-8601 instant — e.g. `'2026-12-31T23:59:59Z'`

[Queries and live queries](/error-codes#queries-and-live-queries)
