-20437 AN ARRAY INDEX CANNOT BE APPLIED TO AN OBJECT THAT IS NOT AN ARRAY.
Explanation
A reference of the form object[array-index] was specified, but the object is not an array. An index cannot be specified for an object that is not an array type.
System action
The statement cannot be processed.
Programmer response
Change the variable or parameter to a variable or parameter of type ARRAY.
SQLSTATE
428H0