Informix Error -26181: Only FIXED format columns can declare a null column-name.
Cause and resolution
Only FIXED format columns can declare a null column-name.
The CREATE EXTERNAL TABLE table statement has found a column defining a null string with the NULL "null-string" syntax that is not valid. Only tables that describe FIXED format files can have a null value defined with the NULL keyword.
Rework the statement and resubmit it.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-26181 fires when a NULL "null-string" clause is used on a column of a non-FIXED-format
external table — per the official guidance.
NULL "null-string"used on a column that isn't in aFIXED-format table, per the official guidance — the direct, only cause; onlyFIXED-format columns may declare a null string this way.
Solutions / Resolution
- Remove the
NULL "null-string"clause, per the official guidance, if the table isn'tFIXEDformat, or - Use
FIXEDformat if the null-string behavior is genuinely needed, per the official guidance's implication.
Examples
N/A
No specific triggering statement is documented beyond NULL "null-string" on a
non-FIXED column.
Diagnostic Checks
- Check the external table's format, and confirm any
NULL "null-string"clause only appears onFIXED-format columns.
Related Errors / Related Topics
- -26188 — "Null string is too long or has an incorrect format." A related null-string error, on the string's length/format rather than it being used in an unsupported format.
NULL "null-string" was declared on a column of a non-FIXED-format table — remove it, or
switch to FIXED format.