Oracle Error PLS-00537: A VARRAY must have a positive limit

Oracle Error Message

PLS-00537: A VARRAY must have a positive limit

Reason for the Error

A VARRAY type was declared with a non-positive limit, for example VARRAY(0).

Solution

Declare the VARRAY with a positive limit and retry the operation.