Informix Error -25855: The option specified is not supported in window aggregates.
Cause and resolution
The option specified is not supported in window aggregates.
The following options are not supported in OLAP window aggregates, including aggregates in the PARTITION BY, ORDER BY, and window-frame extent clauses: Window aggregates with user-defined aggregates Correlated subqueries Collection subqeries Complex data types CURRVAL or NEXTVAL expressions for sequence objects.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-25855 fires when an OLAP window aggregate (including in its PARTITION BY, ORDER BY,
or window-frame extent clauses) uses an unsupported construct — per the official guidance,
these are: user-defined aggregates within a window aggregate, correlated subqueries,
collection subqueries, complex data types, and CURRVAL/NEXTVAL sequence-object
expressions.
- A user-defined aggregate used within a window aggregate, per the official guidance — the first named case.
- A correlated subquery, per the official guidance — the second named case.
- A collection subquery, per the official guidance — the third named case.
- A complex data type, per the official guidance — the fourth named case.
- A
CURRVAL/NEXTVALsequence expression, per the official guidance — the fifth named case.
Solutions / Resolution
- Remove the unsupported construct from the window aggregate (or its
PARTITION BY/ORDER BY/frame-extent clauses), per the official guidance.
Examples
N/A
No specific triggering statement is documented beyond one of the five named unsupported constructs.
Diagnostic Checks
- Check the window aggregate and its
PARTITION BY/ORDER BY/frame-extent clauses for any of the five unsupported constructs, and remove it.
Related Errors / Related Topics
- -25856 — "Invalid usage of window aggregate in this context." A related window aggregate restriction, on the clause the aggregate itself appears in rather than what it contains.
A window aggregate used an unsupported construct (a UDA, correlated/collection subquery, complex type, or sequence expression) — remove it.