Oracle Error OCI-22164: delete element operation is not allowed for variable-length array

Oracle Error Message

OCI-22164: delete element operation is not allowed for variable-length array

Reason for the Error

Trying to delete an element of a variable-length array.

Solution

Ensure that the collection is not a variable-length array prior to calling this function.