Informix Error -26246: API error: Cannot open script.
Cause and resolution
API error: Cannot open script.
The connect or disconnect script cannot be opened. Verify that the connect or disconnect script file has the correct permissions.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-26246 fires when the connect/disconnect script file can't be opened — per the official guidance.
- The connect/disconnect script file has incorrect permissions, per the official guidance — the direct, only cause.
Solutions / Resolution
- Verify the connect/disconnect script file has the correct permissions, per the official guidance.
Examples
N/A
No specific triggering statement is documented beyond a script file open failure.
Diagnostic Checks
- Check the script file's permissions, and correct them so DataExtract can open it.
Related Errors / Related Topics
- -26234 — "API error: Invalid script." A related script error, on the script's content being invalid rather than it being unopenable due to permissions.
The connect/disconnect script file couldn't be opened, likely due to permissions — check and correct them.