Informix Error -23901: Index name (index_name) with leading byte 0x20 not allowed.
Cause and resolution
Index name (index_name) with leading byte 0x20 not allowed.
In some situations, such as when a constraint is defined, the database server creates indexes internally. These indexes, by convention, always have a leading ASCII blank (hex 20) as the first byte of their name. To avoid a conflict, user-created indexes cannot have an ASCII blank (hex 20) as the first byte of their name. This rule is enforced regardless of the locale. This rule is also enforced regardless of the use of the DELIMIDENT environment variable.
-23901 Alter table is not allowed in a multi-statement transaction.
Try separating the ALTER TABLE statement into its own single-statement transaction.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-23901 fires when a user-created index name starts with an ASCII blank (hex
20) — per the official guidance, the database server reserves a leading blank for its
own internally-created indexes (such as those created for constraints), so user-created
index names can't start with one. This rule applies regardless of locale or the
DELIMIDENT environment variable.
- A user-created index name starting with an ASCII blank, per the official guidance — the direct, only cause.
Solutions / Resolution
- Rename the index so it doesn't start with an ASCII blank, per the official guidance's implication.
Examples
N/A
No specific triggering statement is documented beyond a leading-blank index name.
Diagnostic Checks
- Check the flagged index name's first byte, and rename it if it starts with an ASCII blank.
Related Errors / Related Topics
No closely related error codes are cross-referenced for -23901 in this set yet.
A user-created index name started with an ASCII blank, reserved for internally-created indexes — rename it.