Oracle Error PLS-00669: Type of expression should be a valid collection variable

Oracle Error Message

PLS-00669: Type of expression should be a valid collection variable

Reason for the Error

An attempt was made to specify expression after INDICES OF or VALUES OF clause that is not a collection variable.

Solution

Change the index collection expression type to a valid collection variable.