Informix Error -394
-394 View view-name not found.
The named view cannot be dropped as it does not exist. To see names of existing views, query systables as follows:
SELECT tabname FROM systables WHERE tabtype = 'V'
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-394 fires when DROP VIEW (or another statement referencing a view by name) names a view that
doesn't exist in the current database.
- A misspelled view name — the most common cause.
- The view was already dropped (by another session, or an earlier step in the same script).
- Wrong database connected — the view exists, but in a different database than the one the session is currently attached to.
- The name actually refers to a table, not a view, or vice versa — a naming or object-type confusion.
Solutions / Resolution
- Query the system catalog for existing views, per the official guidance:
SELECT tabname FROM systables WHERE tabtype = 'V'; - Verify the exact view name's spelling against that list.
- Confirm the correct database is connected if the name looks right but still isn't found.
- For repeatable scripts, check for the view's existence before attempting
DROP VIEW, rather than assuming it's always present.
Examples
Listing existing views before dropping
SELECT tabname FROM systables WHERE tabtype = 'V';
Checking existence before a repeatable drop
SELECT tabname FROM systables WHERE tabname = 'active_customers' AND tabtype = 'V';
-- only DROP VIEW if this returns a row
Diagnostic Checks
- Query
systablesfiltered totabtype = 'V'to confirm the view's exact name and existence. - Confirm the currently connected database matches the one the view was created in.
Related Errors / Related Topics
- -296 — "Referenced table table-name not available." A related object-not-found error, at the table level rather than the view level.
- -310 — "Table table-name already exists in database." A related object-naming error, on the opposite side (something unexpectedly present rather than unexpectedly missing).
Query systables with tabtype = 'V' first — it's the fastest way to confirm the view's exact
name and whether it exists in the current database at all.