Invalid method invocation with arguments¶
You get an error such as:
- Note that
callcan sometimes be reported as
This normally means you are using a closure (e.g., within a map call) on a channel somewhere in your workflow in which you define variables for each element of the input channel.
You will get the error if the input channel has additional or fewer elements than defined in the closure function.
To fix, ensure that whenever you define variables to elements there is a one to one ratio of variable names to elements
Note that the error message does not report where this happens, so you will have to look for all cases of a closure being applied to the channel with the channel contents as reported in the error, to find where this occurs. Liberal use of the dump channel operator can help you spot a mismatch between expected and actual channel content.