sql.invalid
HTTP 422 Invalid SQL filter
When it happens
Section titled “When it happens”The sql filter could not be parsed, or uses something outside the supported subset (joins, subqueries, other functions, comments and a second statement are refused), or names a field, operator or value the registry doesn’t accept. errors[].code says which (sql.syntax, sql.comment, sql.join, filter.unknown_field, …).
What to do
Section titled “What to do”Fix the query as errors[] describes. The API reference lists the SQL subset.
Sending the same request again gives the same answer until the cause is fixed.
Details
Section titled “Details”- HTTP status: 422 Unprocessable Content
- Where you can meet it: Customer API (
/v1) - Code:
sql.invalid(stable: match on the code, not on the title or detail text)
Example response
Section titled “Example response”{ "type": "https://docs.zemodata.com/errors/sql.invalid", "title": "Invalid SQL filter", "status": 422, "code": "sql.invalid", "detail": "…", "request_id": "req_01JD3K8ZQ4V6W9XG2M5N7P0R1S", "errors": []}See Errors for how problem responses work, and all error codes.