Oracle Error PLS-00666: Only index by binary_integer/pls_integer associative arrays allowed here

Oracle Error Message

PLS-00666: Only index by binary_integer/pls_integer associative arrays allowed here

Reason for the Error

An attempt was made to specify index collection that was not indexed by binary_integer or pls_integer.

Solution

Change the index collection variable type to associative array that is indexed by binary_integer or pls_integer.