Invalid descriptor index

Error constant SQLE_INVALID_DESCRIPTOR_INDEX
ODBC 2 State S1002
ODBC 3 State 07009
Severity 26
SQLCODE –640
SQLSTATE 07009
Sybase error code 8201
Probable cause

The index number used with respect to a descriptor area is out of range.