Error in Derived Column

  • 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..

  • 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