Evaluation failed
Resolve evaluation failed errors.
An evaluation failed error indicates that the CQL expression is syntactically valid but cannot be evaluated at runtime.
Common causes include accessing an undefined variable, performing an invalid operation such as division by zero, or referencing a missing node.
Response
All error responses follow the Problem Details (RFC 9457) format, which defines the type, title, status, detail, and instance fields.
Here is an example of the response returned for this error:
{ "type": "https://croct.help/api/evaluation/evaluation-failed", "title": "The evaluation failed.", "status": 422, "detail": "The query could not be evaluated due to a runtime error.", "errors": [ { "cause": "The divisor cannot be zero.", "location": { "start": { "line": 1, "column": 0, "index": 0 }, "end": { "line": 1, "column": 5, "index": 5 } } } ]}The response includes the following additional field. The location is included only when the failed node has source location information available.
- errorsArray<object>
The list of errors found while processing the expression.