Oracle Error PLS-00331: illegal reference to string

Oracle Error Message

PLS-00331: illegal reference to string

Reason for the Error

You had an EITHER

1. an illegal reference to some object in user SYS. to use one of them in an illegal way OR

2. an illegal reference to a remote object type.

Solution

Remove the reference.