Oracle Solution for Error ora-29251

Solution for Oracle Error ORA-29251

ORA-29251: Index1 is greater than Index2 in call to dbms_sql.bind_array

What triggered the Error:

e value of index1 was greater than the value for index2 in the call to bind_array. This is illegal since the elements of the table that will be bound are those with indexes greater than or equal to index1 and less than or equal to index2.

What should we do to fix it:

rrect the value of the two indexes and try the call to again bind_array.