Message Oracle PLS-00151 - Expression or Variable is an illegal type to PLS/QL: string

ERRORExpression or Variable is an illegal type to PLS/QL: string
CAUSEA type was used which does not belong PL/SQL. This type can only be referenced in CREATE TYPE statements, and is a non-queryable data type.
ACTIONNone