Informix Error -2865: The column column-name does not exist in the table table-name.
Cause and resolution
The column column-name does not exist in the table table-name.
Something in this statement implies that the column shown is part of the indicated table (most likely the statement refers to table-name.column). However, it is not defined in that table. Check the spelling of both names. If they are as you intended, then check the contents of the database; possibly the table has been altered or the column renamed.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-2865 fires when a statement implies a column belongs to a specific table (typically via
table-name.column notation) but that column isn't defined in that table — per the official
guidance, this typically happens from a spelling error, a table alteration, or a column rename.
- A spelling error in the table or column name, per the official guidance — the first named cause.
- The table was altered or the column was renamed, per the official guidance — the second named cause.
Solutions / Resolution
- Check the spelling of both the table name and the column name, per the official guidance.
- If they're as intended, check the contents of the database, per the official guidance, since the table may have been altered or the column renamed.
Examples
A column referenced against the wrong table
ATTRIBUTES
cust_name = orders.customer_name;
-- -2865: "customer_name" is not a column in "orders"
Corrected
ATTRIBUTES
cust_name = customer.customer_name;
Diagnostic Checks
- Check whether the referenced column genuinely belongs to the named table, via Informix
SQL's Tables menu or a direct
syscolumnsquery.
Related Errors / Related Topics
- -2863 — "The column column-name does not exist among the specified tables." A related,
broader error, about a column missing from any table listed in
TABLES, rather than from one specifically named table.
A table.column reference names a column that doesn't exist in that specific table — check
spelling and whether the schema has changed.