Informix Error -26204: API error: Message file is too long.
Cause and resolution
API error: Message file is too long.
The Answer/Extractor message file, message.txt, is incorrect or corrupt. Recopy the message file from $INFORMIXDIR/etc to the directory that the ANSAPI environment variable specifies, or to the current directory if ANSAPI is not set.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-26204 fires when the Answer/Extractor message.txt file is incorrect or corrupt (too
long) — per the official guidance.
message.txtis corrupted, per the official guidance — the direct, only cause.
Solutions / Resolution
- Recopy
message.txtfrom$INFORMIXDIR/etcto theANSAPIdirectory, or the current directory ifANSAPIisn't set, per the official guidance.
Examples
N/A
No specific triggering statement is documented beyond a corrupted/oversized message file.
Diagnostic Checks
- Check
message.txt's size/integrity, and recopy it from$INFORMIXDIR/etcif corrupted.
Related Errors / Related Topics
- -26201 — "API error: Cannot find message file." A related
message.txterror, on the file being missing rather than corrupted. - -26203 — "API error: Message file is too short." The mirror-image corruption symptom, too short rather than too long.
- -26205 — "API error: Error reading message file." A related
message.txterror, on permission/read failures rather than the file itself being malformed.
message.txt was too long (corrupted) — recopy it from $INFORMIXDIR/etc.