Informix Error -1127: Cannot delete row - it has no data.
Cause and resolution
Cannot delete row - it has no data.
You pressed the Delete Row function key (usually F2, but see the operating instructions that the program author supplied) in an empty row. Nothing was deleted.
For 4GL programs, -1308 replaces this error.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-1127 fires when the user presses the Delete Row function key (typically F2) on an already-
empty row during INPUT ARRAY — per the official guidance, -1308 is the equivalent error for
4GL programs specifically.
- Delete Row pressed on a row that has no data, per the official guidance — the direct, only cause; there's nothing to delete.
Solutions / Resolution
- Position on a row that actually has data before pressing Delete Row, per the official guidance.
Examples
N/A
An interactive keystroke condition rather than a statement-level one — position the cursor on a populated row before using Delete Row.
Diagnostic Checks
- Confirm the current row has data before attempting to delete it.
Related Errors / Related Topics
- -1308 — The 4GL-program equivalent of this same empty-row-delete condition.
Delete Row was pressed on an empty row — position on a row with data first (see -1308 for the 4GL-program equivalent).