Informix Error -26210: API error: Error reading configuration file.
Cause and resolution
API error: Error reading configuration file.
The host configuration file, config.txt, does not have the correct permissions or is corrupt. Verify that the file has the correct permissions. Check that the file is in the directory that the ANSAPI environment variable specifies, or in the current directory if ANSAPI is not set. If the file is corrupt, use the Setup option on the DataExtract Main Menu to access the SETUP screen and re-create the configuration file.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-26210 fires when the DataExtract host configuration file, config.txt, can't be read —
per the official guidance.
config.txthas incorrect permissions, per the official guidance — the first named case.config.txtis corrupted, per the official guidance — the second named case.
Solutions / Resolution
- Verify
config.txthas the correct permissions, per the official guidance, and that it's in theANSAPIdirectory (or the current directory ifANSAPIisn't set). - If corrupt, use the Setup option on the DataExtract Main Menu to re-create it, per the official guidance.
Examples
N/A
No specific triggering statement is documented beyond a permission/read failure.
Diagnostic Checks
- Check
config.txt's permissions and location, and re-create it via the DataExtract Setup option if corrupted.
Related Errors / Related Topics
- -26206 — "API error: Cannot find configuration file." A related
config.txterror, on the file being missing rather than unreadable. - -26208 — "API error: Configuration file is too short." A related
config.txtcorruption error, on the file's size rather than a read/permission failure. - -26209 — "API error: Configuration file is too long." A related
config.txtcorruption error, on the file's size rather than a read/permission failure.
config.txt couldn't be read — check its permissions and location, or re-create it if
corrupt.