Informix Error -26217: API error: Inconsistent driver scan code file.
Cause and resolution
API error: Inconsistent driver scan code file.
The controller instructions file, driver.dsc, is invalid or corrupt. Recopy the file from $INFORMIXDIR/etc to the directory that ANSAPI specifies or to the current directory if ANSAPI is not set.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-26217 fires when the DataExtract controller instructions file, driver.dsc, is invalid
or corrupt — per the official guidance.
driver.dscis invalid or corrupted, per the official guidance — the direct, only cause.
Solutions / Resolution
- Recopy
driver.dscfrom$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 driver.dsc.
Diagnostic Checks
- Check
driver.dsc's integrity, and recopy it from$INFORMIXDIR/etcif corrupted.
Related Errors / Related Topics
- -26317 — "API error: Driver scan code file not found." A related
driver.dscerror, on the file being missing rather than invalid/corrupt.
driver.dsc, the DataExtract controller instructions file, was invalid or corrupt —
recopy it from $INFORMIXDIR/etc.