# Postgres error 42P01: relation "x" does not exist

> The table or view name could not be found on the current search_path.

Source: https://scribase.com/postgres-errors/42p01

SQLSTATE class: Syntax Error or Access Rule Violation. Over PostgREST/supabase-js this maps to HTTP 404.

## Causes

- The table is in another schema and the name is not schema-qualified.
- Mixed-case names: a table created as "Users" (quoted) must always be referenced with quotes; unquoted users is a different name.
- The migration that creates it has not run on this database or branch.

## Fixes

- Qualify the name (public.users) or check show search_path;
- Use lower-case unquoted names for new tables.
- List tables with \dt *.* or select from information_schema.tables to see where it lives.

PostgREST answers 404. It also has to reload its schema cache after a migration; a table created a moment ago may not be visible until the reload finishes.