We're loading table using create table and then
array DML of 250 rows at a go.
We get
"ORA: 01400 Caonnot insert NULL value into (user,table,column)"
... where column is a non-NULL nvarchar2(20) column.
When I step through the code, there are no NULL
values going into the array. Only _blank_
strings sometimes. These blank strings are
sometimes going into the non-NULL columns that
are also in the primary key (index constraint)
and that's when the error is reported during the
load.
How do I ensure these blanks are inserted
correctly? At present I'm substituting the
blanks with a single space - and that makes it
all work. However, our data is compromised and
the application will now not work. This seems to
show the blanks are the problem. Is this because
they're in the primary key? Is array DML
inserting NULLs instead of blanks for me?
Please help; I'm stuck.
array DML of 250 rows at a go.
We get
"ORA: 01400 Caonnot insert NULL value into (user,table,column)"
... where column is a non-NULL nvarchar2(20) column.
When I step through the code, there are no NULL
values going into the array. Only _blank_
strings sometimes. These blank strings are
sometimes going into the non-NULL columns that
are also in the primary key (index constraint)
and that's when the error is reported during the
load.
How do I ensure these blanks are inserted
correctly? At present I'm substituting the
blanks with a single space - and that makes it
all work. However, our data is compromised and
the application will now not work. This seems to
show the blanks are the problem. Is this because
they're in the primary key? Is array DML
inserting NULLs instead of blanks for me?
Please help; I'm stuck.