Informix Error -22646: Incorrect levels of indirection.
Cause and resolution
Incorrect levels of indirection.
This message indicates an IBM Informix ESQL/FORTRAN error message. An incorrect index has been accessed in your array. Check the usage of your array. See error message -33203 for a similar message in IBM Informix ESQL/C.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-22646 fires when an array is accessed with an incorrect index — per the official guidance; see the similar error -33203 in IBM Informix ESQL/C.
- An incorrect index used to access the array, per the official guidance — the direct, only cause.
Solutions / Resolution
- Check the usage of the array and correct the index, per the official guidance.
Examples
N/A
No specific triggering statement is documented beyond an incorrectly indexed array access.
Diagnostic Checks
- Check the flagged array reference's index against the array's actual dimensionality, and correct it.
Related Errors / Related Topics
- -22645 — "Incorrect dimension on array variable." A related array-usage error, on the array's declared dimension rather than an incorrect index at a use site.
An array was accessed with an incorrect index — check the array's usage and correct the index. See also -33203 in ESQL/C for the analogous error.