Informix Error -8021: The source file filename cannot be opened. This is probably because the file does not exist.
Cause and resolution
The source file filename cannot be opened. This is probably because the file does not exist.
Check the spelling of filename. Check that the report-specification file exists in your current directory, or if it is in another directory, check that you provided the correct pathname. If this information is correct, verify that your account has read permission on the file.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-8021 fires when the ACE compiler can't open the named report-specification source file — per the official guidance, most likely because the file doesn't exist.
- The file doesn't exist at the expected location, per the official guidance — the direct, likely cause.
- Insufficient read permission, per the official guidance — a secondary, named possibility.
Solutions / Resolution
- Check the spelling of the filename, per the official guidance.
- Check that the report-specification file exists in the current directory, or provide the correct pathname if it's elsewhere, per the official guidance.
- Verify the account has read permission on the file, per the official guidance, if spelling and location are already correct.
Examples
Checking the file's existence
$ ls -l filename
Diagnostic Checks
- Check the filename's spelling, its location (current directory or full path), and read permission.
Related Errors / Related Topics
- -8008 — "The file filename could not be opened. The operating system was asked to open it for reading." The general version of this same open-for-reading failure, for any ACE-related file rather than specifically the report-specification source.
The report-specification source file couldn't be opened, most likely because it doesn't exist — check spelling, location, and read permission.