Informix Error -4333: The name has already been called with a different number of parameters.
Cause and resolution
The name has already been called with a different number of parameters.
Earlier in the program, there is a call to this same function or event with a different number of parameters in the parameter list. At least one of these calls must be in error. Examine the FUNCTION or EVENT statement for name to find out the correct number of parameters. Then examine all calls to it, and make sure that they are written correctly. When this error appears near the top of a function in conjunction with error -4336, fix error -4336 first, and -4333 will usually disappear. NewEra programs return this error.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-4333 fires when the same function or event is called elsewhere in the program with a different number of parameters — per the official guidance, at least one of those calls must be wrong. The official guidance specifically notes: when this appears near the top of a function alongside -4336, fix -4336 first, since -4333 usually disappears as a result. Only NewEra returns this error.
- Two or more calls to the same function/event using different parameter counts, per the official guidance — the direct, only cause.
Solutions / Resolution
- Examine the
FUNCTION/EVENTstatement for the correct parameter count, per the official guidance. - Examine all calls to it, and correct any that are wrong, per the official guidance.
- If -4336 also appears near the top of the function, fix that first, per the official guidance.
Examples
Inconsistent call arities
CALL save(1001)
...
CALL save(1001, "note")
-- -4333: save() called with 1 parameter here, 2 elsewhere
Corrected
CALL save(1001)
...
CALL save(1002)
Diagnostic Checks
- Check the function/event's declaration for its correct parameter count, and correct every call site that disagrees; fix any -4336 in the same function first.
Related Errors / Related Topics
- -4336 — "The parameter variable-name has not been defined within the function or report." A related error the official guidance explicitly says to fix first, since it often resolves -4333 as a side effect.
A function/event is called with inconsistent parameter counts — fix any related -4336 first, then correct the call sites.