﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>FranklinFaces.com - Oracle &amp; SQL Server Database Forums for all IT Professionals / Oracle Forum / ORA - Oracle Database Error Codes - Search via specific error codes. / ORA-00000 Through ORA-09989   / ORA-01400: cannot insert NULL into (string)  ora error ora 01400 / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>FranklinFaces.com - Oracle &amp; SQL Server Database Forums for all IT Professionals</description><link>http://franklinfaces.com/</link><webMaster>no-reply@FranklinFaces.com</webMaster><lastBuildDate>Sat, 19 May 2012 18:11:17 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: ORA-01400: cannot insert NULL into (string)  ora error ora 01400</title><link>http://franklinfaces.com/Topic400-54-1.aspx</link><description>&lt;H1 class=titleHeader&gt;ORA-01400: cannot insert NULL error when importing data ora 01400&lt;/H1&gt;&lt;P class=titleHeader&gt;&lt;SPAN class=questionBody&gt;I exported a table that has blank (ie a single space) data in a column which is defined a not null.&lt;BR&gt;&lt;BR&gt;When I try to import these data into a table I get the &lt;BR&gt;error &lt;BR&gt;ORA-01400: cannot insert NULL into ("SSYS"."PS_ACAD_PROG_TBL"&lt;WBR&gt;."AMS_PROG&lt;WBR&gt;_TYPE_GRP"&lt;WBR&gt;&lt;BR&gt;&lt;BR&gt;It looks like that the data that were blank in the export file is treated as NULL.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=titleHeader&gt;&lt;SPAN class=questionBody&gt;&lt;/SPAN&gt; </description><pubDate>Tue, 15 Jun 2010 17:02:43 GMT</pubDate><dc:creator>Admin</dc:creator></item><item><title>RE: ORA-01400: cannot insert NULL into (string)  ora error ora 01400</title><link>http://franklinfaces.com/Topic400-54-1.aspx</link><description>&lt;TABLE cellSpacing=0 cellPadding=0 width="100%" summary="layout table" border=0&gt;&lt;TBODY&gt;&lt;TR vAlign=top&gt;&lt;TD&gt;&lt;H1&gt;ORA-01400: cannot insert NULL into &amp;lt;tablename&amp;gt;&lt;/H1&gt;&lt;/TD&gt;&lt;TR vAlign=top&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;DIV class=txt&gt;ora 01400  This error is thrown if someone tries to insert a &lt;A href="http://www.adp-gmbh.ch/ora/misc/null.html"&gt;&lt;FONT color=#553333&gt;null&lt;/FONT&gt;&lt;/A&gt; into a column that has a &lt;A href="http://www.adp-gmbh.ch/ora/misc/integrity_constraints.html#not_null"&gt;&lt;FONT color=#553333&gt;not null&lt;/FONT&gt;&lt;/A&gt; constraint. &lt;/DIV&gt;&lt;DIV&gt;&lt;PRE class=code&gt;create table ora_01400 (  foo number not null,  bar number not null,  baz number not null);&lt;/PRE&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;PRE class=code&gt;insert into ora_01400 values (1, null, 3);&lt;/PRE&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;PRE class=out&gt;ERROR at line 1:ORA-01400: cannot insert NULL into ("RENE"."ORA_01400"."BAR")&lt;/PRE&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description><pubDate>Tue, 15 Jun 2010 16:59:06 GMT</pubDate><dc:creator>Admin</dc:creator></item><item><title>RE: ORA-01400: cannot insert NULL into (string)  ora error ora 01400</title><link>http://franklinfaces.com/Topic400-54-1.aspx</link><description>Oracle/PLSQL: ORA-01400 Error  ora 01400&lt;P&gt;&lt;TABLE class=parm_values cellSpacing=0 cellPadding=9 width="100%" border=0&gt;&lt;TBODY&gt;&lt;TR class=tr_left_top&gt;&lt;TD width=50&gt;&lt;P class=oracle_error&gt;Error:&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;ORA-01400: cannot insert NULL into ("SCHEMA"."TABLE_NAME"."COLUMN_NAME")&lt;/TD&gt;&lt;/TR&gt;&lt;TR class=tr_left_top&gt;&lt;TD&gt;&lt;P class=oracle_error&gt;Cause:&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;You tried to insert a NULL value into a column that does not accept NULL values.&lt;/TD&gt;&lt;/TR&gt;&lt;TR class=tr_left_top&gt;&lt;TD&gt;&lt;P class=oracle_error&gt;Action:&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;The options to resolve this Oracle error are: &lt;OL&gt;&lt;LI&gt;Correct your INSERT statement so that you do not insert a NULL value into a column that is defined as NOT NULL. &lt;/LI&gt;&lt;/OL&gt;&lt;BR&gt;&lt;P&gt;For example, if you had a table called &lt;B&gt;suppliers&lt;/B&gt; defined as follows:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE class=sql_command cellSpacing=0 cellPadding=0 width=316 border=0&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width=308 colSpan=4&gt;CREATE TABLE suppliers&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width=13&gt;(&lt;/TD&gt;&lt;TD width=108&gt;supplier_id&lt;/TD&gt;&lt;TD width=90&gt;number&lt;/TD&gt;&lt;TD width=73&gt;not null,&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width=13&gt;&lt;/TD&gt;&lt;TD width=108&gt;supplier_name&lt;/TD&gt;&lt;TD width=90&gt;varchar2(50)&lt;/TD&gt;&lt;TD width=73&gt;not null );&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR&gt;&lt;P&gt;And you tried to execute the following INSERT statement:&lt;/P&gt;&lt;BLOCKQUOTE class=sql_command&gt;&lt;P&gt;INSERT INTO suppliers&lt;BR&gt;( supplier_id )&lt;BR&gt;values&lt;BR&gt;( 10023 );&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;BR&gt;&lt;P&gt;You would receive the following error message:&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://www.franklinfaces.com/Uploads/Images/9b0d4d68-5ef6-42a3-8bf1-a5af.png"&gt;&lt;/P&gt;&lt;P&gt;You have defined the &lt;B&gt;supplier_name&lt;/B&gt; column as a NOT NULL field. Yet, you have attempted to insert a NULL value into this field.&lt;/P&gt;&lt;P&gt;You could correct this error with the following INSERT statement:&lt;/P&gt;&lt;BLOCKQUOTE class=sql_command&gt;&lt;P&gt;INSERT INTO suppliers&lt;BR&gt;( supplier_id, supplier_name )&lt;BR&gt;values&lt;BR&gt;( 10023, 'IBM' );&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Now, you are inserting a NOT NULL value into the &lt;B&gt;supplier_name&lt;/B&gt; column.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description><pubDate>Tue, 15 Jun 2010 16:58:19 GMT</pubDate><dc:creator>Admin</dc:creator></item><item><title>ORA-01400: cannot insert NULL into (string)  ora error ora 01400</title><link>http://franklinfaces.com/Topic400-54-1.aspx</link><description>&lt;TABLE border=0&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD vAlign=top noWrap&gt;&lt;B&gt;ORA-01400:&lt;/B&gt;&lt;/TD&gt;&lt;TD&gt;cannot insert NULL into (&lt;I&gt;string&lt;/I&gt;)&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;FONT size=7&gt;ora 01400&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;TABLE border=0&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD vAlign=top noWrap&gt;&lt;B&gt;ORA-01400:&lt;/B&gt;&lt;/TD&gt;&lt;TD&gt;cannot insert NULL into (&lt;I&gt;string&lt;/I&gt;)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD vAlign=top&gt;&lt;B&gt;Cause:&lt;/B&gt;&lt;/TD&gt;&lt;TD&gt;An attempt was made to insert a NULL into the column "USER"."TABLE"."COLUMN". &lt;P&gt;For example, if you enter:&lt;/P&gt;&lt;BR&gt;connect scott/tiger create table a (a1 number not null); insert into a values (null); &lt;BR&gt;&lt;P&gt;Oracle returns:&lt;/P&gt;&lt;BR&gt;ORA-01400 cannot insert NULL into ("SCOTT"."A"."A1") : which means you cannot insert NULL into "SCOTT"."A"."A1".&lt;BR&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD vAlign=top&gt;&lt;B&gt;Action:&lt;/B&gt;&lt;/TD&gt;&lt;TD&gt;Retry the operation with a value other than NULL. &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description><pubDate>Tue, 15 Jun 2010 16:57:21 GMT</pubDate><dc:creator>Admin</dc:creator></item></channel></rss>
