Informix Error -26019: Purpose function am_truncate not defined for table or index.
Cause and resolution
Purpose function am_truncate not defined for table or index.
The am_truncate purpose function is not defined for the VTI table or a VII index on the table being truncated.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-26019 fires when TRUNCATE is attempted on a VTI table or a VII-based index whose access
method doesn't define the am_truncate purpose function — per the official guidance.
- The VTI table's or VII index's access method not defining
am_truncate, per the official guidance — the direct, only cause; truncate isn't supported without it.
Solutions / Resolution
- Don't truncate a VTI table or VII-based index whose access method lacks
am_truncate, per the official guidance — implement/enable the purpose function, or avoid truncating that object.
Examples
N/A
No specific triggering statement is documented beyond truncating a VTI table/VII index
lacking am_truncate.
Diagnostic Checks
- Check the access method's defined purpose functions for
am_truncate, and avoid truncating the object if it's not defined.
Related Errors / Related Topics
- -26017 — "External indices are not supported with non-default pagesizes." A related Virtual-Index Interface restriction, on pagesize rather than a missing purpose function.
TRUNCATE was attempted on a VTI table/VII index whose access method doesn't define
am_truncate — this operation isn't supported without it.