Informix Error -26265: API error: ORDER BY contains fields not selected.
Cause and resolution
API error: ORDER BY contains fields not selected.
Some of the fields that are specified in the ORDER BY clause in the EXTRACT statement have not been selected. Modify the SELECT clause to select the fields and rerun the EXTRACT statement.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-26265 fires when a DataExtract EXTRACT statement's ORDER BY clause names a field that
wasn't in the SELECT clause — per the official guidance.
- A field in
ORDER BYthat wasn't selected, per the official guidance — the direct, only cause.
Solutions / Resolution
- Modify the
SELECTclause to select the field(s) named inORDER BY, per the official guidance, and rerun theEXTRACTstatement.
Examples
N/A
No specific triggering statement is documented beyond an unselected ORDER BY field.
Diagnostic Checks
- Check
ORDER BYfields against theSELECTclause's fields, and add any missing ones toSELECT.
Related Errors / Related Topics
No closely related error codes are cross-referenced for -26265 in this set yet.
An EXTRACT statement's ORDER BY referenced an unselected field — add it to the
SELECT clause.