Informix Error -25837: Cannot truncate an index fragment.
Cause and resolution
Cannot truncate an index fragment.
An index fragment cannot be truncated. The TRUNCATE option of the ALTER FRAGMENT statement is supported only with table fragments.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-25837 fires when ALTER FRAGMENT ... TRUNCATE targets an index fragment — per the
official guidance, TRUNCATE is supported only for table fragments.
ALTER FRAGMENT ... TRUNCATEtargeting an index fragment, per the official guidance — the direct, only cause.
Solutions / Resolution
- Only use
TRUNCATEon table fragments, per the official guidance, not index fragments.
Examples
N/A
No specific triggering statement is documented beyond truncating an index fragment.
Diagnostic Checks
- Check whether the fragment being truncated belongs to a table or an index, and confirm it's a table fragment.
Related Errors / Related Topics
- -25838 — "Duplicate partition name in the list of fragments for truncation." A
related
TRUNCATE-clause error, on repeated partition names rather than an index fragment.
ALTER FRAGMENT ... TRUNCATE targeted an index fragment, which isn't supported — only
table fragments can be truncated.