November 26, 2013 at 7:39 am
i am loading files throough csv to oracle and some one column has some null values and the database has "not null" constraint. So im using derived column to identify null values and replace with 0. But i get error message cannot insert null values.
[Oracle Destination [17840]] Error: OCI error encountered. ORA-01400: cannot insert NULL into ("IHUBUSER"."Table_Services"."ID")
I had use the following options:
1) TRIM(id) == "" ? "0" : TRIM(id)
2) len(TRIM(id)) > 0 ? TRIM(id) : "0"
Shaun..
November 26, 2013 at 9:26 am
I GOT THE SOLUTION
ISNULL(ID) ?0: ID
Viewing 2 posts - 1 through 1 (of 1 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy