Informix Error -9623: Internal length must be greater than zero and smaller than 32,768.
Cause and resolution
Internal length must be greater than zero and smaller than 32,768.
When you use the CREATE OPAQUE TYPE statement to define a fixed-length opaque type, the value that you specify for the internal length modifier must be greater than 0 bytes and smaller than 32,768 bytes.
Use a valid value to define the type.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-9623 fires when a CREATE OPAQUE TYPE statement for a fixed-length type specifies an internal length outside the valid range — per the official guidance.
- An internal length of 0 or less, or 32,768 or more, per the official guidance — the direct, only cause.
Solutions / Resolution
- Use a valid internal length value (greater than 0, smaller than 32,768), per the official guidance.
Examples
An invalid internal length
CREATE OPAQUE TYPE my_type (internallength = 0, ...); -- -9623
Corrected
CREATE OPAQUE TYPE my_type (internallength = 16, ...);
Diagnostic Checks
- Check the
internallengthmodifier's value, and set it within the valid 1-32,767 range.
Related Errors / Related Topics
- -9624 — "Maximum length must be greater than zero and smaller than 32,768." The same class of range-validity error, for variable-length opaque types' maximum length instead.
- -9625 — "Alignment must be set to 1, 2, 4 or 8." A related CREATE OPAQUE TYPE modifier-validity error, on alignment rather than internal length.
The internallength modifier was outside the valid 1-32,767 byte range — correct it.