Informix Error -1304
-1304 Error in field.
You entered a value in this field that cannot be stored in the program variable that is meant to receive it. For example, possibly you entered a decimal number when the application provided only an integer variable, or you entered a character string that is longer than the application expected. Note all the circumstances and then discuss the problem with the person who wrote the application program.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-1304 is the 4GL-program equivalent of -1106: it fires when a value entered into a field can't be stored in the receiving program variable — per the official guidance, an example is entering a decimal where only an integer is accepted, or a string longer than the variable can hold.
- A value whose type doesn't fit the receiving variable's declared type, per the official guidance's example — the same direct cause as -1106.
- A character string longer than the receiving variable's declared length, per the official guidance's other named example.
Solutions / Resolution
- Enter a value that matches the receiving variable's type and length, per the official guidance — see -1106 for the full detail.
- Document the circumstances and consult the application's developer, per the official guidance, if the value should genuinely be accepted.
Examples
N/A
This is the 4GL-program wording of -1106's condition — see -1106's examples for the underlying type/length mismatch mechanism.
Diagnostic Checks
- Check the receiving program variable's declared type and length against the value that was entered, per -1106's diagnostic approach.
Related Errors / Related Topics
- -1106 — "Error in field." The non-4GL wording of this same type/length mismatch.
The 4GL-program wording of -1106's type/length mismatch — see -1106 for the full detail.