Informix Error -26302: API error: Invalid summary function.
Cause and resolution
API error: Invalid summary function.
The aggregate function in the SELECT clause of the current EXTRACT statement is invalid. Correct and rerun the EXTRACT statement.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-26302 fires when an EXTRACT statement's SELECT clause contains an invalid aggregate
(summary) function — per the official guidance.
- The
SELECTclause's aggregate function is invalid, per the official guidance — the direct, only cause.
Solutions / Resolution
- Correct the aggregate function and rerun the
EXTRACTstatement, per the official guidance.
Examples
N/A
No specific triggering statement is documented beyond an invalid summary function.
Diagnostic Checks
- Check the
SELECTclause's aggregate functions for validity, and correct the offending one.
Related Errors / Related Topics
- -26263 — "API error: Invalid function reference." A related restriction on function references generally, of which invalid summary functions are one specific case.
An EXTRACT statement's SELECT clause had an invalid aggregate function — correct it and
rerun.