Message Oracle PCC-02360 - This array type is invalid for use with ARRAYLEN statement

ERRORThis array type is invalid for use with ARRAYLEN statement
CAUSEArrays of some host variables types are not allowed and hence also cannot be used in ARRAYLEN statements. VARCHAR and DATE are examples.
ACTIONSpecify an array with a datatype that can be used in host arrays.