Informix Error -26055: Either statement-id or cursor name (%s) is not defined
Cause and resolution
Either statement-id or cursor name (%s) is not defined
This error occurs when either statement-id or a cursor name is not defined before attempting to use it. Make sure to either PREPARE the statement-id or DECLARE the cursor before using it.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-26055 fires when a statement-id/cursor name is used before it's defined — per the official guidance.
- The statement-id wasn't
PREPAREd, or the cursor wasn'tDECLAREd, before use, per the official guidance — the direct, only cause.
Solutions / Resolution
PREPAREthe statement-id, orDECLAREthe cursor, before using it, per the official guidance.
Examples
N/A
No specific triggering statement is documented beyond using an undefined statement-id or cursor name.
Diagnostic Checks
- Check the program logic for a
PREPARE/DECLAREpreceding every use of the statement-id/cursor name, and add whichever is missing.
Related Errors / Related Topics
- -26057 — "Either statement-id or cursor (%s) is already in use" The mirror-image error, reusing an identifier still in use rather than using one that was never defined.
A statement-id or cursor name was used before being PREPAREd/DECLAREd — define it first.