Home / Oracle Errors / ORA-01400

ORA-01400

Cannot insert NULL into column

What it means

A required (NOT NULL) column received no value.

Common causes

How to fix it

  1. Look at the column named in the message and provide a value
  2. Add a default if appropriate: ALTER TABLE <t> MODIFY <col> DEFAULT 0;
  3. Fix the application so it never sends empty strings for required fields

How to prevent it

Validate input before it reaches the database.

Still stuck? Ask the community in Q&A.

Get the weekly Vismo digestNew Oracle articles and Q&A in your inbox. No spam.

One email a week. Unsubscribe any time.