Informix Error -26201: API error: Cannot find message file.
Cause and resolution
API error: Cannot find message file.
The Answer/Extractor message file, message.txt, cannot be found. Check that the ANSAPI environment variable is set correctly. If necessary, copy the message file from $INFORMIXDIR/etc to your ANSAPI directory, or to the current directory if ANSAPI is not set.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-26201 fires when the Answer/Extractor message.txt file can't be found — per the official
guidance.
- The
ANSAPIenvironment variable isn't set correctly, per the official guidance — the direct, only cause;message.txtmust be locatable viaANSAPI, or the current directory ifANSAPIisn't set.
Solutions / Resolution
- Check that
ANSAPIis set correctly, per the official guidance. - If necessary, copy
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 missing message.txt.
Diagnostic Checks
- Check the
ANSAPIenvironment variable's value, and confirmmessage.txtexists at that location (or the current directory).
Related Errors / Related Topics
- -26203 — "API error: Message file is too short." A related
message.txterror, on a corrupted file rather than one that can't be found. - -26204 — "API error: Message file is too long." A related
message.txterror, on a corrupted file rather than one that can't be found. - -26205 — "API error: Error reading message file." A related
message.txterror, on permissions/corruption rather than the file being missing.
The DataExtract/Answer-Extractor message.txt file couldn't be found — check ANSAPI and
the file's location.