Informix Error -16385: Call to function function-name failed.
Cause and resolution
Call to function function-name failed.
The logic in your 4GL or C language function might be defective or might not support the argument list that you specified in a CALL command. Use the VIEW command to examine the source code of a 4GL function. Use the Escape feature to examine the source file of a C function.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-16385 fires when a CALL command's target function fails — per the official guidance.
- Defective logic in the 4GL or C function, per the official guidance — the first named cause.
- An argument list that the function doesn't actually support, per the official guidance — the second named cause.
Solutions / Resolution
- Use
VIEWto examine a 4GL function's source code, per the official guidance. - Use the Escape feature to examine a C function's source file, per the official guidance.
Examples
Viewing a function's source
> VIEW myfunc
Diagnostic Checks
- Review the function's source (via
VIEWfor 4GL, or Escape for C) against the arguments actually passed.
Related Errors / Related Topics
- -16355 — "Function function-name requires parameters." A related
CALL-failure precondition, about missing parameters specifically rather than a general call failure. - -16356 — "Too many parameters passed to function function-name." A related
CALL-failure precondition, about extra parameters specifically rather than a general call failure.
A CALL to the named function failed — review its source against the arguments passed.