Informix Error -1122
-1122 Incompatible message file.
The message file that is named in the most-recently executed OPTIONS HELP FILE statement was not acceptable. Possibly it has been corrupted in some way. Possibly the OPTIONS statement named the message source file instead of the compiled message file (the output of mkmessage). Possibly the file was compiled with an outdated version of the mkmessage utility. Recompile the message file with the current version of the utility, and review the program source to make sure that it names the correct file.
For 4GL programs, -1229 replaces this error.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-1122 fires when the message file referenced in an OPTIONS HELP FILE statement is corrupted or
invalid — per the official guidance, -1229 is the equivalent error for 4GL programs
specifically.
- A corrupted message file, per the official guidance's named possibility.
- The source
.msgfile referenced instead of the compiledmkmessageoutput, per the official guidance — a source/build-output confusion. - A message file compiled with an outdated
mkmessageutility version, per the official guidance — a version-compatibility mismatch.
Solutions / Resolution
- Recompile the message file using the current
mkmessageutility version, per the official guidance. - Verify the program source references the correct (compiled) file, per the official
guidance, not the
.msgsource.
Examples
Recompiling and checking the reference
$ mkmessage order_help.msg order_help.iem
OPTIONS HELP FILE "order_help"
-- correct: references the compiled order_help.iem, not order_help.msg
Diagnostic Checks
- Confirm the
OPTIONS HELP FILEstatement references the compiled message file, not its.msgsource. - Recompile with the current
mkmessageversion if the file might be stale or corrupted.
Related Errors / Related Topics
- -1120 — "Message file not found." A related help-message error, about the file being missing entirely rather than found but invalid.
- -1121 — "Message number not found in message file." A related help-message error, about a specific number missing from an otherwise-valid file.
- -1229 — The 4GL-program equivalent of this same incompatible-message-file condition.
The message file is corrupted, or the wrong (source vs. compiled) file is referenced — recompile
with the current mkmessage and verify the reference (see -1229 for the 4GL-program equivalent).