Informix Error -2041: The form filename cannot be opened. This is probably because it does not exist, or the user does not have read permission.
Cause and resolution
The form filename cannot be opened. This is probably because it does not exist, or the user does not have read permission.
Check the spelling of filename. Check that the form file exists in your current directory. If it is in another directory, check that the correct pathname has been provided. On a UNIX system, if these things are correct, verify that your account has read permission on the file.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-2041 fires when the Form Compiler can't open the named form file — per the official guidance, this is most likely because the file doesn't exist or the account lacks read permission.
- The form file not existing, per the official guidance — the first named cause.
- The account lacking read permission on the file, per the official guidance — the second named cause.
Solutions / Resolution
- Verify the spelling of the filename, per the official guidance.
- Confirm the form file exists in the current directory, per the official guidance.
- If located elsewhere, ensure the correct pathname is provided, per the official guidance.
- On UNIX systems, check that your account has read permissions on the file, per the official guidance.
Examples
Checking existence and permissions
$ ls -l order_entry.per
Diagnostic Checks
- Check the filename's spelling, its existence, and read permissions.
Related Errors / Related Topics
- -1110 — "Form file not found." A related form-file error, at the runtime
OPEN FORMlayer rather than the Form Compiler's own file open.
The form file couldn't be opened — check its spelling, existence, and read permissions.