Too many arguments were passed to the X function. The maximum argument count for the function is N.
The function received more arguments than its signature allows.
Why it happens
- An extra comma or argument.
- Confusing two similar functions' signatures.
- A mismatched
SWITCH/IFnesting where value/result pairs got out of step.
How to fix it
- Check the function signature and remove the extra argument.
SWITCHtakes an expression followed by value/result pairs, then an optional else — count them in pairs.- Format the expression to see the argument boundaries.