Terminal or Vercel runtime logs

NeonDbError: null value in column "…" of relation "…" violates not-null constraint

What it means
The database refused to save a row because a required column was left empty (`null`).
Likely causes
  • Form input wasn't validated with a schema before running the INSERT or UPDATE query.
  • A form field's name attribute in HTML doesn't match the field name read in the Server Action.
Prevention
Validate every Server Action input with a schema before running any database query.

Copy for your agent

The database threw `null value in column violates not-null constraint`. Validate the input with a schema in the Server Action before touching the database, and return a friendly field error if it's empty.

Full help articleThe app can't connect to the database

Last reviewed Nov 8, 2026