Oracle Error PLS-00667: Element type of associative array should be pls_integer or binary_integer

Oracle Error Message

PLS-00667: Element type of associative array should be pls_integer or binary_integer

Reason for the Error

An attempt was made to specify index collection whos element type was not one of pls_integer or binary_integer.

Solution

Change the index collection variable type to associative array whose element type is pls_integer or binary_integer.