Informix Error -4335
-4335 The symbol field is not an element of the record record.
This statement refers to record.field. Although the variable record is indeed a record, field is not the name of one of its component fields. Find the definition of record (it may be in the GLOBALS file), verify the names of its fields, and correct the spelling of field.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-4335 fires when record.field is referenced but field isn't a component of record — per
the official guidance, record is indeed a record, but the named field doesn't exist on it.
- A field name referenced on a record that doesn't have a component by that name, per the official guidance — the direct, only cause.
Solutions / Resolution
- Find the definition of
record(it may be in theGLOBALSfile), per the official guidance. - Verify the names of its fields, and correct the spelling of
field, per the official guidance.
Examples
Referencing a nonexistent record field
DEFINE rec RECORD
order_id INTEGER,
order_date DATE
END RECORD
LET x = rec.order_staus
-- -4335: rec has no field named order_staus
Corrected
LET x = rec.order_status
Diagnostic Checks
- Check the record's definition (locally or in
GLOBALS), and confirm the referenced field name exists and is spelled correctly.
Related Errors / Related Topics
- -4007 — "Record member "name" is undefined." A closely related error covering the same condition.
A referenced record field doesn't exist on that record — check the record's definition and correct the field name's spelling.