Informix Error -26064: The stored procedure execution failed because a statement cannot be prepared(%s).
Cause and resolution
The stored procedure execution failed because a statement cannot be prepared(%s).
The stored procedure execution failed because a statement with in the stored procedure could not be prepared. Change the statement or try to run it with the EXECUTE IMMEDIATE statement.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-26064 fires when a statement inside an executing stored procedure can't be
PREPAREd — per the official guidance.
- A statement within the stored procedure couldn't be prepared, per the official guidance — the direct, only cause; the named statement's own text is the place to look.
Solutions / Resolution
- Change the statement, per the official guidance, or
- Run it with
EXECUTE IMMEDIATEinstead, per the official guidance.
Examples
N/A
No specific triggering statement is documented beyond a statement failing to prepare.
Diagnostic Checks
- Check the named statement's syntax and referenced objects, and consider
EXECUTE IMMEDIATEifPREPAREcontinues to fail.
Related Errors / Related Topics
No closely related error codes are cross-referenced for -26064 in this set yet.
A statement inside a stored procedure failed to prepare — fix the statement, or use
EXECUTE IMMEDIATE.