Oracle Error ORA-26813: The value for argument “ARRAY_SIZE” is too small

Oracle Error Message

ORA-26813: The value for argument “ARRAY_SIZE” is too small

Reason for the Error

The value for argument “ARRAY_SIZE” was less than the number of columns in the requested column list.

Solution

Check the return value for “NUM_COLUMNS” parameter then allocate all input arrays to at least that size and invoke the same OCI function again.