Informix Error -11054: Base table not found.
Cause and resolution
Base table not found.
This Informix CLI error code is the same as SQLSTATE value S0002. The following functions can return this error code: SQLExecDirect() and SQLPrepare().
The SQL statement contained a DROP TABLE, DROP VIEW, ALTER TABLE, CREATE VIEW, CREATE INDEX, GRANT, REVOKE, SELECT, DELETE, INSERT, UPDATE, or CREATE TABLE statement, but the table name or view name does not exist. Make sure that the necessary tables and views already exist.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-11054 fires when a statement references a table or view that doesn't exist — per the
official guidance, this is the same as SQLSTATE value S0002, returnable by
SQLExecDirect() and SQLPrepare(), for statements including DROP TABLE, DROP VIEW,
ALTER TABLE, CREATE VIEW, CREATE INDEX, GRANT, REVOKE, SELECT, DELETE,
INSERT, UPDATE, and CREATE TABLE.
- A statement naming a table or view that doesn't exist, per the official guidance — the direct, only cause.
Solutions / Resolution
- Confirm the necessary tables and views already exist, per the official guidance.
Examples
N/A
No specific triggering statement is documented beyond a reference to a nonexistent table/view.
Diagnostic Checks
- Check the table/view name's spelling and existence in the target database before reissuing the statement.
Related Errors / Related Topics
- -11053 — "Base table or view already exists." The mirror-image error — a name that already exists where a new one is expected, rather than one that doesn't exist.
- -11056 — "Index not found." The same class of not-found error, for an index rather than a table/view.
A statement referenced a table or view that doesn't exist — confirm the name's spelling and existence.