Informix Error -23851: This operation is not allowed on a table where the type is raw or scratch.
Cause and resolution
This operation is not allowed on a table where the type is raw or scratch.
An illegal operation (for example, trying to create an index) has been attempted on a RAW or SCRATCH table.
You might want to alter the table type to a type that supports the operation.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-23851 fires when an illegal operation (for example, CREATE INDEX) is attempted on a
RAW or SCRATCH table — per the official guidance.
- An operation unsupported on
RAW/SCRATCHtables, per the official guidance — the direct, only cause.
Solutions / Resolution
- Alter the table type to one that supports the operation, per the official guidance.
Examples
N/A
No specific triggering statement is documented beyond an unsupported operation on a
RAW/SCRATCH table.
Diagnostic Checks
- Check the target table's type, and alter it to
STANDARDif the operation requires it.
Related Errors / Related Topics
- -23857 — "This operation is not allowed on tables where the type is raw or
static." A related table-type restriction, pairing
RAWwithSTATICrather thanSCRATCH.
An operation isn't allowed on a RAW/SCRATCH table — alter the table type if needed.