Informix Error -26317: API error: Driver scan code file not found.
Cause and resolution
API error: Driver scan code file not found.
The driver scan code file, driver.dsc, cannot be found. Verify that the driver.dsc file exists in the path that the ANSAPI environment variable specifies, or in the current directory if ANSAPI is not set. Copy the file from $INFORMIXDIR/etc, if necessary.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-26317 fires when the DataExtract controller instructions file, driver.dsc, can't be
found — per the official guidance.
driver.dscisn't present in theANSAPIdirectory, or the current directory ifANSAPIisn't set, per the official guidance — the direct, only cause.
Solutions / Resolution
- Verify
driver.dscexists in theANSAPIpath, or the current directory ifANSAPIisn't set, per the official guidance. - Copy the file from
$INFORMIXDIR/etcif necessary, per the official guidance.
Examples
N/A
No specific triggering statement is documented beyond a missing driver.dsc.
Diagnostic Checks
- Check
ANSAPI/the current directory fordriver.dsc, and copy it from$INFORMIXDIR/etcif missing.
Related Errors / Related Topics
- -26217 — "API error: Inconsistent driver scan code file." A related
driver.dscerror, on the file being invalid/corrupt rather than missing.
driver.dsc, the DataExtract controller instructions file, couldn't be found — check its
location and recopy it if necessary.