Informix Error -11056: Index not found.
Cause and resolution
Index not found.
This Informix CLI error code is the same as SQLSTATE value S0012. The following functions can return this error code: SQLExecDirect() and SQLPrepare().
The SQL statement contained a DROP INDEX statement, but the specified index name did not exist. Use an index name that exists already.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-11056 fires when a DROP INDEX statement names an index that doesn't exist — per the
official guidance, this is the same as SQLSTATE value S0012, returnable by
SQLExecDirect() and SQLPrepare().
- A
DROP INDEXnaming an index that doesn't exist, per the official guidance — the direct, only cause.
Solutions / Resolution
- Use an index name that already exists, per the official guidance.
Examples
N/A
No specific triggering statement is documented beyond a nonexistent index name.
Diagnostic Checks
- Check the index name's spelling and existence before issuing the DROP INDEX statement.
Related Errors / Related Topics
- -11054 — "Base table not found." The same class of not-found error, for a table/view rather than an index.
- -11055 — "Index already exists." The mirror-image error — an index name that already exists where a new one is expected.
A DROP INDEX named an index that doesn't exist — check the name's spelling and existence.