Informix Error -50122: Invalid length specified for the ixString::truncate() member function.
Cause and resolution
Invalid length specified for the ixString::truncate() member function.
You have asked to truncate the string to more than its maximum possible length (32,766), or to a NULL or negative length. Check the width value (using ixString::getWidth()) before calling ixString::truncate().
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-50122 is raised by the ixString class in the Window Painter GUI builder library — per the official guidance:
You have asked to truncate the string to more than its maximum possible length (32,766), or to a NULL or negative length. Check the width value (using ixString::getWidth()) before calling ixString::truncate().
- Invalid length specified for the ixString::truncate() member function, per the official guidance — the direct, documented condition.
Solutions / Resolution
- Check the specific value or object state the message names, per the official guidance, against the constraint it describes.
Examples
N/A
No specific triggering statement is documented beyond the class-library condition described above.
Diagnostic Checks
- Check the specific value, object state, or call sequence that
ixStringflags here, against the constraint the official guidance describes.
Related Errors / Related Topics
- -50123 — "Invalid length specified for the ixString::pad() member function." Another
ixString-related condition in this set. - -50121 — "Invalid position specified for the ixString::getChar() member function." Another
ixString-related condition in this set.
Invalid length specified for the ixString::truncate() member function.