Oracle Error ORA-24424: Invalid attempt to define at position 0

Oracle Error Message

ORA-24424: Invalid attempt to define at position 0

Reason for the Error

An invalid attempt was made to call OCIDefineByPos for position 0.

Solution

Ensure that the implicit ROWID attribute, OCI_ATTR_FETCH_ROWID, is set on the statement handle before doing the execute.