Error 422 - Scalar variable expected

Scalar variable expected - The compiler expected a scalar variable as a formal parameter to a user-defined function. Scalar variables are non-array variables.