Informix Error -26954: The statement failed because the grid query contained a UNION or UNION ALL operator.
Cause and resolution
The statement failed because the grid query contained a UNION or UNION ALL operator.
Statements that include the GRID clause cannot contain the UNION or UNION ALL operators. Remove the UNION and UNION ALL operators from the query and run the statement again.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-26954 fires when a GRID-clause query contains UNION/UNION ALL — per the official
guidance.
UNION/UNION ALLused in a query with aGRIDclause, per the official guidance — the direct, only cause; not allowed.
Solutions / Resolution
- Remove
UNION/UNION ALLfrom the query and rerun, per the official guidance.
Examples
N/A
No specific triggering statement is documented beyond UNION/UNION ALL in a GRID
query.
Diagnostic Checks
- Check the
GRID-clause query forUNION/UNION ALL, and remove it.
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 thanUNION. - -26958 — "The statement failed because the grid query contained one or more
subqueries." The same class of
GRID-clause syntax restriction, on subqueries rather thanUNION. - -26962 — "The statement failed because the grid query contained coorelated
joins." The same class of
GRID-clause syntax restriction, on correlated joins rather thanUNION.
A GRID-clause query contained UNION/UNION ALL, which isn't allowed — remove it.