Informix Error -2029: Screen record array name has component sizes which either differ from the specified dimension of the array or differ among themselves.
Cause and resolution
Screen record array name has component sizes which either differ from the specified dimension of the array or differ among themselves.
The dimension of the screen array is written in square brackets that follow its name, as in the following example where the dimension is 12:
SCREEN RECORD details [12]
(items.item_num, items.item_desc, items.unit_price)
In this case, exactly 12 screen fields should be associated with each of the three columns that are listed in the screen record. This error message appears when one or more of the columns appear a different number of times.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-2029 fires when a screen record array's columns don't all appear the same number of times as
the array's declared dimension — per the official guidance, if a SCREEN RECORD array is
declared with a dimension of 12, every listed column should appear exactly 12 times.
- A column appearing a different number of times than the array's declared dimension, per the official guidance — the direct, common cause.
- Columns within the same array differing from each other in their appearance count, per the official guidance's other named case.
Solutions / Resolution
- Ensure every column in the screen record array appears exactly as many times as the array's declared dimension, per the official guidance.
Examples
A column appearing the wrong number of times
SCREEN
{
[item_num1 ][item_desc1 ][price1 ]
[item_num2 ][item_desc2 ][price2 ]
...
[item_num12 ][item_desc12 ][price12 ]
}
END
SCREEN RECORD details [12]
(items.item_num, items.item_desc, items.unit_price)
-- -2029: if item_desc only has 11 numbered fields in SCREEN instead of
-- 12, this error fires -- every listed column needs exactly 12
Diagnostic Checks
- Count each column's listed entries against the array's declared dimension, and against each other.
Related Errors / Related Topics
No closely related error codes are cross-referenced for -2029 in this set yet.
A screen record array's column appears a different number of times than the array's declared dimension (or than its sibling columns) — count and correct.