Informix Error -1119
-1119 NEXT FIELD name not found in form.
This statement (INPUT or INPUT ARRAY) contains a NEXT FIELD clause that names a field that is not defined in the form. Perhaps the form has been changed, but the program has not. Also see the note for error message -1102.
For 4GL programs, -1371 replaces this error.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-1119 fires when an INPUT or INPUT ARRAY statement's NEXT FIELD clause names a field that
doesn't exist in the form definition — per the official guidance, the likely cause is that the
form was changed without updating the program to match; -1371 is the equivalent error for 4GL
programs specifically.
- The form specification changed (a field renamed or removed) without updating the program's
NEXT FIELDclauses to match, per the official guidance's named likely cause. - A typo in the
NEXT FIELDclause's field name.
Solutions / Resolution
- Update the
NEXT FIELDclause to reference a field that actually exists in the current form definition, per the official guidance. - Review the form specification for recent field renames/removals that the program hasn't been updated to reflect.
Examples
A stale NEXT FIELD reference
INPUT BY NAME order_id, status
AFTER FIELD status
NEXT FIELD customer_num
END INPUT
-- -1119: the form no longer has a field named customer_num
Diagnostic Checks
- Check every
NEXT FIELDclause's referenced field name against the current form specification.
Related Errors / Related Topics
- -1102 — "Field name not found in form." A related form-processing error, about a general
field reference not resolving, rather than one specific to
NEXT FIELD. - -1371 — The 4GL-program equivalent of this same
NEXT FIELDmismatch.
The form was changed without updating the program's NEXT FIELD clause to match — update it to
reference a field that actually exists (see -1371 for the 4GL-program equivalent).