Oracle Error ORA-22318: input type is not an array type

Oracle Error Message

ORA-22318: input type is not an array type

Reason for the Error

The user is trying to obtain the number of elements for a non-array type.

Solution

Pass in only a named collection type which is an array.