Informix Error -50123: Invalid length specified for the ixString::pad() member function.
Cause and resolution
Invalid length specified for the ixString::pad() member function.
You have asked to pad the string either to more than its maximum possible length (32,766) or to a negative value. Check the width value (using ixString::getWidth()) before calling ixString::pad().
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-50123 is raised by the ixString class in the Window Painter GUI builder library — per the official guidance:
You have asked to pad the string either to more than its maximum possible length (32,766) or to a negative value. Check the width value (using ixString::getWidth()) before calling ixString::pad().
- Invalid length specified for the ixString::pad() 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
- -50122 — "Invalid length specified for the ixString::truncate() 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::pad() member function.