Informix Error -2954: You have exceeded the maximum of number control instructions.
Cause and resolution
You have exceeded the maximum of number control instructions.
The INSTRUCTIONS section of this form has exceeded the ability of the form compiler to handle it. Remove some instructions to simplify the form.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-2954 fires when a form's INSTRUCTIONS section exceeds the form compiler's internal capacity
to process it — per the official guidance, this is a hard compiler limit on the number of
control instructions.
- An
INSTRUCTIONSsection with too many control instructions for the compiler to handle, per the official guidance — the direct, only cause.
Solutions / Resolution
- Remove some instructions to simplify the form, per the official guidance.
Examples
Simplifying an oversized INSTRUCTIONS section
Split a form with many BEFORE/AFTER FIELD blocks across several smaller forms, or move
some validation logic out of the form specification and into the calling 4GL program instead
of the compiler-processed INSTRUCTIONS section.
Diagnostic Checks
- Check the size of the
INSTRUCTIONSsection, and reduce the number of control instructions if the compiler reports this limit exceeded.
Related Errors / Related Topics
- -2943 — "You have exceeded the pseudo machine capacity." A related compiler-capacity error, about an overly complex single expression rather than too many control instructions overall.
The INSTRUCTIONS section has too many control instructions for the compiler to process —
remove some to simplify the form.