Informix Error -4503: A function has not returned the correct number of values expected by the calling function.
Cause and resolution
A function has not returned the correct number of values expected by the calling function.
See error -1320, which has replaced this error.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-4503 is a legacy code — per the official guidance, it has been replaced by error -1320. See
-1320 for the current documentation of this condition: a function's
RETURN statement supplies a different number of values than the caller expects to receive.
- This exact wording is superseded, per the official guidance — -1320 now covers the same underlying condition.
Solutions / Resolution
- Treat this as -1320 and apply that code's resolution steps, per the official guidance.
Examples
N/A
No triggering example is documented separately from -1320 — see that code for worked examples of the underlying return-value-count mismatch.
Diagnostic Checks
- Confirm the environment/version reporting -4503 rather than -1320, and refer to -1320 for the actual diagnostic steps.
Related Errors / Related Topics
- -1320 — "A function has not returned the correct number of values expected by the calling function." The current, active code that has replaced -4503.
-4503 has been replaced by -1320 — refer to that code for the current documentation of this return-value-count mismatch.