Informix Error -1126: Cannot insert another row - the input array is full.
Cause and resolution
Cannot insert another row - the input array is full.
You are entering data into an array of records that is represented in the program by an array of program variables. That array is now full; no place is available to store another record. Press the ACCEPT key (usually ESCAPE, but see the operating instructions that the program author supplied) to process the records that you have entered.
For 4GL programs, -1307 replaces this error.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-1126 fires when the user tries to enter another row into a program array that's already at
capacity during INPUT ARRAY — per the official guidance, -1307 is the equivalent error for
4GL programs specifically.
- The program array has reached its declared maximum size, per the official guidance — the direct, only cause; there's no room for another entered row.
Solutions / Resolution
- Press the ACCEPT key (typically
ESCAPE) to process the data already entered, per the official guidance, rather than trying to add more rows. - If more rows genuinely need to be entered, increase the program array's declared size in the source code, if that's the actual design intent.
Examples
An array at capacity
DEFINE order_items ARRAY[50] OF RECORD
item_id INTEGER,
qty INTEGER
END RECORD;
-- attempting to enter a 51st row during INPUT ARRAY triggers -1126
Diagnostic Checks
- Check the program array's declared size against how many rows the user is actually trying to enter.
Related Errors / Related Topics
- -1307 — The 4GL-program equivalent of this same array-full condition.
The program array is at capacity — press ACCEPT to process what's entered, or increase the array's declared size (see -1307 for the 4GL-program equivalent).