Informix Error -2941
-2941 name is not a display field name on the form.
This statement refers to a field as name, but no such name is defined. Check the spelling, and review the ATTRIBUTES section to see how the field was defined.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-2941 fires when a statement refers to a field name that isn't defined anywhere on the form — per the official guidance, this is a straightforward undefined-name reference.
- A field name referenced that was never defined in
ATTRIBUTES, per the official guidance — the direct, only cause.
Solutions / Resolution
- Check the spelling of the referenced field name, per the official guidance.
- Review the
ATTRIBUTESsection to see how the field was defined, per the official guidance.
Examples
A reference to an undefined field
INSTRUCTIONS
BEFORE FIELD custname
MESSAGE "Enter customer name"
END
-- -2941: the field is actually named "cust_name" in ATTRIBUTES
Corrected
INSTRUCTIONS
BEFORE FIELD cust_name
MESSAGE "Enter customer name"
END
Diagnostic Checks
- Check the spelling of the referenced field name against the
ATTRIBUTESsection, and correct any mismatch.
Related Errors / Related Topics
- -2955 — "The name field-tag is not a displayed field in this form." The mirror-image
error: a name defined in
ATTRIBUTESbut missing fromSCREEN, rather than one referenced but never defined inATTRIBUTES.
The referenced field name isn't defined anywhere on the form — check its spelling against
ATTRIBUTES.