Oracle Error PLS-01911: : associative array key violates its type constraints

Oracle Error Message

PLS-01911: : associative array key violates its type constraints

Reason for the Error

The key value of an element being inserted into an associative array violates the the key type constraints.

Solution

Relax the constraints if the key value is meant to be acceptable. Otherwise, apply a valid key value when inserting an element.