Informix Error -26958: The statement failed because the grid query contained one or more subqueries.
Cause and resolution
The statement failed because the grid query contained one or more subqueries.
Satatements that include the GRID clause cannot contain subqueries. Remove all subqueries from the query and run the statement again.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-26958 fires when a GRID-clause query contains a subquery — per the official
guidance.
- A subquery used in a query with a
GRIDclause, per the official guidance — the direct, only cause; not allowed.
Solutions / Resolution
- Remove all subqueries from the query and rerun, per the official guidance.
Examples
N/A
No specific triggering statement is documented beyond a subquery in a GRID query.
Diagnostic Checks
- Check the
GRID-clause query for subqueries, and remove them.
Related Errors / Related Topics
- -26952 — "The statement failed because the grid query contained a server name."
The same class of
GRID-clause syntax restriction, on a server name rather than subqueries. - -26954 — "The statement failed because the grid query contained a UNION or UNION
ALL operator." The same class of
GRID-clause syntax restriction, onUNIONrather than subqueries. - -26962 — "The statement failed because the grid query contained coorelated
joins." The same class of
GRID-clause syntax restriction, on correlated joins rather than subqueries.
A GRID-clause query contained a subquery, which isn't allowed — remove it.