Informix Error -23766: Illegal use of an external table tablename in query.
Cause and resolution
Illegal use of an external table tablename in query.
This statement describes an illegal operation on an external table. The types of operations allowed for external tables are CREATE TABLE, SELECT, SELECT INTO, INSERT, DROP TABLE, GRANT, REVOKE, CREATE SYNONYM, RENAME COLUMN, and RENAME TABLE.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-23766 fires when an external table is used in an operation the type doesn't
support — per the official guidance, allowed operations are CREATE TABLE, SELECT,
SELECT INTO, INSERT, DROP TABLE, GRANT, REVOKE, CREATE SYNONYM, RENAME COLUMN, and RENAME TABLE.
- An operation outside the supported list attempted on an external table, per the official guidance — the direct, only cause.
Solutions / Resolution
- Use only the supported operations on external tables, per the official
guidance:
CREATE TABLE,SELECT,SELECT INTO,INSERT,DROP TABLE,GRANT,REVOKE,CREATE SYNONYM,RENAME COLUMN,RENAME TABLE.
Examples
N/A
No specific triggering statement is documented beyond an unsupported operation on an external table.
Diagnostic Checks
- Check the flagged operation against the supported list, and use a different approach if it's not on the list.
Related Errors / Related Topics
No closely related error codes are cross-referenced for -23766 in this set yet.
An unsupported operation was attempted on an external table — only CREATE TABLE/
SELECT/SELECT INTO/INSERT/DROP TABLE/GRANT/REVOKE/CREATE SYNONYM/RENAME COLUMN/RENAME TABLE are allowed.