Informix Error -33027: Record nesting too deep. Maximum is n.
Cause and resolution
Record nesting too deep. Maximum is n.
The preprocessor limits the number of levels to which records (data structures) can be nested. Work backward from this point and review the declaration of records. Possibly the punctuation or keywords that close a record have been omitted or have gone unrecognized due to an earlier error. If all is as you intended it, you will have to simplify the data structure.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-33027 fires when a record/data-structure declaration nests deeper than the preprocessor's limit — per the official guidance, this can be a genuine over-nesting, or a symptom of an earlier unrecognized error that left a closing keyword/punctuation missing.
- A record genuinely nested past the preprocessor's limit, per the official guidance — the direct cause.
- A record-closing keyword or punctuation omitted or unrecognized due to an earlier error, per the official guidance — an indirect cause.
Solutions / Resolution
- Work backward through the record declarations for a missing closing keyword/ punctuation, per the official guidance.
- If nesting is genuinely intended, simplify the data structure, per the official guidance.
Examples
N/A
No specific triggering statement is documented beyond over-deep record nesting.
Diagnostic Checks
- Check preceding record declarations for a missing closing keyword/punctuation, and simplify the structure if nesting is genuinely intended.
Related Errors / Related Topics
- -33026 — "Blocks cannot be nested more than n levels." The same class of nesting-depth error, for program blocks rather than record declarations.
A record/data-structure declaration nested past the preprocessor's limit — check for a missing closing keyword, or simplify the structure.