Informix Error -22628: Record component component-name not declared.
Cause and resolution
Record component component-name not declared.
This message indicates an IBM Informix ESQL/FORTRAN preprocessor error. Examine the related structure declaration for this record. The component-name element does not exist as it is typed within the structure declaration.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-22628 fires when a referenced record component doesn't exist in the structure declaration — per the official guidance, the component name doesn't exist as typed within the structure declaration.
- A record component referenced by a name not present in the structure declaration, per the official guidance — the direct, only cause.
Solutions / Resolution
- Examine the structure declaration for the record and correct the component name, per the official guidance.
Examples
N/A
No specific triggering statement is documented beyond referencing a non-existent component.
Diagnostic Checks
- Check the record's structure declaration for the flagged component name, and correct any mismatch.
Related Errors / Related Topics
- -22620 — "Host object host variable not declared." A related declaration error, on the host variable itself rather than one of its record components.
A referenced record component doesn't exist in the structure declaration — check the component name against the structure's actual declaration.