Informix Error -3001: There are no forms in the current directory.
Cause and resolution
There are no forms in the current directory.
You can run only forms that are present in the current directory or a directory that is named in your DBPATH environment variable. Change directories to the one that contains the desired forms, or change the contents of DBPATH.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-3001 fires when Informix SQL's Run Form option finds no compiled forms available to run — per
the official guidance, you can run only forms present in the current directory or a directory
named in the DBPATH environment variable.
- No compiled form files in the current directory, per the official guidance — the first named cause.
- No compiled form files in any directory named in
DBPATH, per the official guidance — the second named cause.
Solutions / Resolution
- Change directories to the one that contains the desired forms, per the official guidance.
- Or change the contents of
DBPATHto include the directory holding the forms, per the official guidance.
Examples
Checking and setting DBPATH
echo $DBPATH
export DBPATH=/home/oninit/forms:$DBPATH
Diagnostic Checks
- Check the current directory and every directory named in
DBPATHfor compiled form files (.frm), and adjust either as needed.
Related Errors / Related Topics
- -3031 — "The form form-name cannot be found or opened." A related form-lookup error, about one specific named form not being found (or not openable), rather than no forms being present at all.
No compiled forms are visible from the current directory or DBPATH — change directories or
update DBPATH.