# Postgres error 3F000: schema "x" does not exist

> A statement or search_path names a schema that has not been created.

Source: https://scribase.com/postgres-errors/3f000

SQLSTATE class: Invalid Schema Name. Over PostgREST/supabase-js this maps to HTTP 400.

## Causes

- Creating objects in a schema before it exists.
- Restoring a dump of one schema into a database that lacks the schemas it references (for example an extensions schema).

## Fixes

- create schema if not exists x; before the objects that use it.
- Restore dependencies first, or include them in the dump.