Oracle Error OCI-22626: Type Mismatch while constructing or accessing OCIAnyData

Oracle Error Message

OCI-22626: Type Mismatch while constructing or accessing OCIAnyData

Reason for the Error

Type supplied is not matching the type of the AnyData. If piece wise construction or access is being attempted, the type supplied is not matching the type of the current attribute.

Solution

Make sure the type supplied matches the type of object to to be constucted or accessed.