Informix Error -16356: Too many parameters passed to function function-name.
Cause and resolution
Too many parameters passed to function function-name.
Your argument list in a CALL command includes more parameters than the function is defined as receiving. If you are not sure how many parameters should be passed to the function, you can use a VIEW command to display the source code of the function.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-16356 fires when a CALL command's argument list has more parameters than the function is
defined to take — per the official guidance.
- A
CALLcommand with more parameters than the function accepts, per the official guidance — the direct, only cause.
Solutions / Resolution
- Remove the extra parameters, per the official guidance.
- Use
VIEWto display the function's source code if unsure how many parameters it expects, per the official guidance.
Examples
A CALL command with too many parameters
> CALL myfunc(arg1, arg2, arg3)
Corrected
> CALL myfunc(arg1, arg2)
Diagnostic Checks
- Use
VIEWon the function's source to confirm its expected parameter count.
Related Errors / Related Topics
- -16355 — "Function function-name requires parameters." The mirror-image error, about too few parameters rather than too many.
A CALL command has too many parameters — check the function's expected parameter count via
VIEW.