Informix Error -4517: Strings of length > 512 cannot be returned from function calls.
Cause and resolution
Strings of length > 512 cannot be returned from function calls.
See error -1333, which has replaced this error.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-4517 is a legacy code — per the official guidance, it has been replaced by error -1333. See -1333 for the current documentation of this condition: a function attempted to return a string longer than 512 bytes.
- This exact wording is superseded, per the official guidance — -1333 now covers the same underlying condition.
Solutions / Resolution
- Treat this as -1333 and apply that code's resolution steps, per the official guidance.
Examples
N/A
No triggering example is documented separately from -1333 — see that code for worked examples of the underlying string-length limit.
Diagnostic Checks
- Confirm the environment/version reporting -4517 rather than -1333, and refer to -1333 for the actual diagnostic steps.
Related Errors / Related Topics
- -1333 — "Strings of length > 512 cannot be returned from function calls." The current, active code that has replaced -4517.
-4517 has been replaced by -1333 — refer to that code for the current documentation of this function-return string-length limit.