Informix Error -23747: CREATE EXTERNAL TABLE: FIXED or DELIMITED columns must be external chars column-name.
Cause and resolution
CREATE EXTERNAL TABLE: FIXED or DELIMITED columns must be external chars column-name.
The CREATE EXTERNAL TABLE statement contains an external column type that is invalid. If the table describes a FIXED format file, the valid external- column types are CHAR, PACKED, ZONED, and BINARY. CHAR data must be enclosed in quotes.
If the table describes a DELIMITED format file and includes external-column types, then the type must be CHAR. A table that describes DELIMITED format files does not need to include external-column-type information.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-23747 fires when a column's external type doesn't fit its table's format — per the official guidance.
- A
FIXED-format table column with an external type other thanCHAR/PACKED/ZONED/BINARY, per the official guidance — the first named case. - A
DELIMITED-format table column with an external type other thanCHAR, per the official guidance — the second named case (DELIMITEDtables don't need external-type information at all).
Solutions / Resolution
- For
FIXEDtables, useCHAR/PACKED/ZONED/BINARY(quotingCHARdata), per the official guidance. - For
DELIMITEDtables, useCHARif an external type is given at all, per the official guidance — or omit external-type information entirely.
Examples
N/A
No specific triggering statement is documented beyond a format-inappropriate external type.
Diagnostic Checks
- Check the table's format (
FIXED/DELIMITED) and each column's external type, and correct any mismatch.
Related Errors / Related Topics
- -23746 — "CREATE EXTERNAL TABLE: Invalid external column type column-name." The general external-column-type validity error this is a format-specific case of.
A column's external type didn't fit its table's FIXED/DELIMITED format — correct it.