Informix Error -11055: Index already exists.
Cause and resolution
Index already exists.
This Informix CLI error code is the same as SQLSTATE value S0011. The following functions can return this error code: SQLExecDirect() and SQLPrepare().
The SQL statement contained a CREATE INDEX statement, but the index name exists already. Reword the statement to use a unique index name.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-11055 fires when a CREATE INDEX statement names an index that already exists — per the
official guidance, this is the same as SQLSTATE value S0011, returnable by
SQLExecDirect() and SQLPrepare().
- A
CREATE INDEXnaming an already-existing index, per the official guidance — the direct, only cause.
Solutions / Resolution
- Reword the statement to use a unique index name, per the official guidance.
Examples
N/A
No specific triggering statement is documented beyond a duplicate index name.
Diagnostic Checks
- Check whether the index name already exists before issuing the CREATE INDEX statement.
Related Errors / Related Topics
- -11056 — "Index not found." The mirror-image error — an index name that doesn't exist where one is expected, rather than a name that already does.
A CREATE INDEX named an index that already exists — use a unique name.