Inserting Blanks Into NOT NULL Column Fails With ORA-01400

(Doc ID 1010215.6)

Last updated on JULY 05, 2017

Applies to:

Precompilers - Version 1.0 and later
Information in this document applies to any platform.
***Checked for relevance on 24-Dec-2012***

Symptoms

In your precompiler program, you are trying to insert into a mandatory NOT NULL column one or more blanks.  You create a character host variable and fill it with blanks.  When you execute the INSERT statement, you get the Oracle error 'ORA-01400 mandatory (NOT NULL) column is missing or NULL during insert'. 

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms