Informix Error -23917: Unable to lock row for hold cursor.
Cause and resolution
Unable to lock row for hold cursor.
When a lock is required for a row in a hold cursor, it must be a special type of lock so that it is not released prematurely. This error indicates that the hold cursor lock attribute could not be acquired.
The accompanying ISAM error code might indicate the reason.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-23917 fires when a hold cursor can't acquire the special lock type required for a row — per the official guidance, hold-cursor locks must be a special type so they aren't released prematurely; check the accompanying ISAM error code for the specific reason.
- A failure acquiring the hold-cursor lock attribute, per the official guidance — no further named detail; check the accompanying ISAM error code.
Solutions / Resolution
- Check the accompanying ISAM error code, per the official guidance, for the underlying reason.
Examples
N/A
No specific triggering statement is documented beyond a hold-cursor lock failure.
Diagnostic Checks
- Check the accompanying ISAM error code, and resolve the underlying cause it indicates.
Related Errors / Related Topics
No closely related error codes are cross-referenced for -23917 in this set yet.
A hold cursor couldn't acquire its required row lock — check the accompanying ISAM error code.