Oracle Error ORA-22152: destination variable-length array is not initialized

Oracle Error Message

ORA-22152: destination variable-length array is not initialized

Reason for the Error

The variable-length array on the right-hand-side of an assignment or the destination array of an append is not initialized.

Solution

Initialize the destination variable-length array prior to calling this function.