Informix Error -23746: CREATE EXTERNAL TABLE: Invalid external column type column-name.
Cause and resolution
CREATE EXTERNAL TABLE: Invalid external column type column-name.
The CREATE EXTERNAL TABLE statement contains an invalid external column type.
Make sure the external-column types are valid: CHAR, PACKED, ZONED, or BINARY. CHAR data must be enclosed in quotes.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-23746 fires when a column's declared external column type isn't valid — per the
official guidance, valid types are CHAR, PACKED, ZONED, or BINARY, and CHAR
data must be quoted.
- An external column type outside
CHAR/PACKED/ZONED/BINARY, per the official guidance — the direct, only cause.
Solutions / Resolution
- Use one of the valid external-column types, per the official guidance, quoting
CHARdata.
Examples
A valid external column type
col1 CHAR(10) EXTERNAL CHAR(10)
Diagnostic Checks
- Check the flagged column's external type declaration, and correct it to
CHAR/PACKED/ZONED/BINARY.
Related Errors / Related Topics
- -23747 — "CREATE EXTERNAL TABLE: FIXED or DELIMITED columns must be external chars column-name." A related external-column-type error, on the type's fit for FIXED/DELIMITED format rather than general validity.
A column's external type wasn't one of CHAR/PACKED/ZONED/BINARY — correct it.