# Postgres error 42704: type "x" does not exist / role "x" does not exist

> A referenced object that is not a table or column (a type, role, collation or extension object) cannot be found.

Source: https://scribase.com/postgres-errors/42704

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

## Causes

- Using an extension type (vector, citext) before the extension is enabled, or from a schema not on search_path.
- Granting to a role that does not exist on this server.

## Fixes

- Enable the extension first and qualify the type if needed (extensions.vector).
- Create the role, or remove the grant from dumps restored elsewhere (pg_dump --no-owner --no-privileges).