Informix Error -2033: The field name has a default value not within the range of its include list values.
Cause and resolution
The field name has a default value not within the range of its include list values.
The indicated field has both a DEFAULT attribute and an INCLUDE attribute, but they disagree. The default value is not one that is allowed. Modify one of the attributes, and recompile the form specification.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-2033 fires when a field's DEFAULT value doesn't appear in its own INCLUDE list — per the
official guidance, this is a conflict between the two attributes on the same field.
- A
DEFAULTvalue not present in the field'sINCLUDElist, per the official guidance — the direct, only cause.
Solutions / Resolution
- Modify either the
DEFAULTattribute or theINCLUDEattribute definitions, per the official guidance, so the default value is one of the included values, then recompile.
Examples
A DEFAULT outside the INCLUDE list
ATTRIBUTES
status = order_status,
DEFAULT = "new",
INCLUDE = ("pending", "shipped", "cancelled");
-- -2033: "new" isn't in the INCLUDE list
Corrected
ATTRIBUTES
status = order_status,
DEFAULT = "pending",
INCLUDE = ("pending", "shipped", "cancelled");
Diagnostic Checks
- Compare the field's
DEFAULTvalue against itsINCLUDElist, and reconcile whichever side is wrong.
Related Errors / Related Topics
- -1103 — "This value is not among the valid possibilities." A related
INCLUDE-list error, about a user-entered value rather than the field's ownDEFAULT. - -1301 — The 4GL-program equivalent of -1103's condition.
A field's DEFAULT value isn't in its own INCLUDE list — reconcile the two attributes.