Prisma ORMRunbook 0/2 done
P2021
Prisma ORM Error P2021: Table does not exist
Error✕ Not retryable · fix the payloadHTTP 500 Internal Server ErrorDatabase
TL;DR · 10-second read
The schema has a model whose table was never created in this database. Run prisma migrate deploy (or db push in prototypes) against the same DATABASE_URL.
Identify: does your log match?
What you see · exact log / response
PrismaClientKnownRequestError:
Invalid `prisma.user.findMany()` invocation:
The table `public.User` does not exist in the current database.
code: 'P2021',
meta: { modelName: 'User', table: 'public.User' }Fix
Being written
Copy-paste fixes for P2021 are in the enrichment queue
The summary above is verified. Paste your full trace into the decoder for a diagnosis now.
Open the decoder →Related errors
Last verified 2026-10-08 · Source: Prisma error reference P1000–P6010 · Official docs ↗ · ~3,600 searches/mo