Informix Error -26318: API error: Invalid message file.
Cause and resolution
API error: Invalid message file.
The message file, message.txt, is invalid or corrupted. Recopy the message file from $INFORMIXDIR/etc to the path that the ANSAPI environment variable specifies, or to the current directory if ANSAPI is not set.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-26318 fires when the DataExtract message.txt file is invalid or corrupted — per the
official guidance.
message.txtis invalid or corrupted, per the official guidance — the direct, only cause.
Solutions / Resolution
- Recopy
message.txtfrom$INFORMIXDIR/etcto theANSAPIpath, or the current directory ifANSAPIisn't set, per the official guidance.
Examples
N/A
No specific triggering statement is documented beyond a corrupted message.txt.
Diagnostic Checks
- Check
message.txt's integrity, and recopy it from$INFORMIXDIR/etcif corrupted.
Related Errors / Related Topics
- -26319 — "API error: Message file too long." The same class of
message.txtcorruption error, specifically a too-long file. - -26322 — "API error: File not found." A related
message.txt/config.txterror, on the file being missing rather than invalid.
message.txt was invalid or corrupted — recopy it from $INFORMIXDIR/etc.