Oracle error - input dataset '0' is NULL
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 85
- Joined: Fri Nov 18, 2005 5:35 am
Oracle error - input dataset '0' is NULL
Hi,
I am getting the Following error while processing data from oracle to oracle.
APT_CombinedOperatorController,0: Field 'UDF_057' from input dataset '0' is NULL. Record dropped.
The column name is UDF_057
It contains NULL value.And Nullable option is Yes.
Thanks,
sudhakar
I am getting the Following error while processing data from oracle to oracle.
APT_CombinedOperatorController,0: Field 'UDF_057' from input dataset '0' is NULL. Record dropped.
The column name is UDF_057
It contains NULL value.And Nullable option is Yes.
Thanks,
sudhakar
i need to know datastage
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Not a particularly useful subject line for future Search users!
Make sure that Field 'UDF_057' from input dataset is nullable everywhere it is used - including downstream operator(s) that might be combined with the one that generated the warning.
Set APT_DISABLE_COMBINATION to True to find out exactly where the null value is being dropped; you are almost certain to find a Not Null specification thereabouts.
Use reject-handling links wherever possible to trap rows that do not conform to the main link's record schema.
![Rolling Eyes :roll:](./images/smilies/icon_rolleyes.gif)
Make sure that Field 'UDF_057' from input dataset is nullable everywhere it is used - including downstream operator(s) that might be combined with the one that generated the warning.
Set APT_DISABLE_COMBINATION to True to find out exactly where the null value is being dropped; you are almost certain to find a Not Null specification thereabouts.
Use reject-handling links wherever possible to trap rows that do not conform to the main link's record schema.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
If you are using any transformation functions on these nullable fields make sure you check for Nulls before you perform
HTH
Code: Select all
e.g. If IsNull(Col1) then SetNull() Else Trim(Col1).
Kris
Where's the "Any" key?-Homer Simpson
Where's the "Any" key?-Homer Simpson
Hello:
I am getting the same error. The Job Flow is as follows:
Verified:
On the Metatable Table COL_DT is Type = Date, Length = 10 and Nullable = Y.
My source Table for COL_DT Type = Date, Length = 10 and Nullable = Y.
When I look at the data in source table for COL_DT there are some blank rows.
My Target Table for COL_DT is Type = Timestamp, Length = 23 Scale = 3, Nullable = Y.
In the transformer I am using DatetoString to convert the Date to Timestamp.
When I run this job get the following error.
So I try to resolve the Null Issue first using the following code:
The job aborts with:
Would appreciate a guiding hand with this error.
I am getting the same error. The Job Flow is as follows:
Code: Select all
DB2
|
\|/
Lookup --------->Transformer -------->MSSQL Tbl
/|\ |
| Agg
| |
|
Dataset(s) Dataset
Verified:
On the Metatable Table COL_DT is Type = Date, Length = 10 and Nullable = Y.
My source Table for COL_DT Type = Date, Length = 10 and Nullable = Y.
When I look at the data in source table for COL_DT there are some blank rows.
My Target Table for COL_DT is Type = Timestamp, Length = 23 Scale = 3, Nullable = Y.
In the transformer I am using DatetoString to convert the Date to Timestamp.
Code: Select all
DateToString(Opportunity_Product_lkp.COL_DT,"%yyyy-%mm-%dd"):' 00:00:00.000'
Code: Select all
APT_CombinedOperatorController,1: Field 'COL_DT' from input dataset '0' is NULL. Record dropped.
So I try to resolve the Null Issue first using the following code:
Code: Select all
If IsNull(Opportunity_Product_lkp.COL_DT) then SetNull() Else DateToString(Opportunity_Product_lkp.COL_DT,"%yyyy-%mm-%dd"):' 00:00:00.000'
Code: Select all
Transformer_stage,1: Failure during execution of operator logic.
Thanks in advance,
-
- Premium Member
- Posts: 397
- Joined: Wed Apr 12, 2006 2:28 pm
- Location: Tennesse
Hello samsuf2002:samsuf2002 wrote:Try this
If IsNull(Col1)= 1 then SetNull() Else Trim(Col1).
Thanks for your quick response. I tried the following:
The job aborts and givesIf IsNull(Opportunity_Product_lkp.COL_DT) = 1 then SetNull() Else Trim(DateToString(Opportunity_Product_lkp.COL_DT,"%yyyy-%mm-%dd"):' 00:00:00.000')
Code: Select all
Transofrmer_stage_trn,0: Failure during execution of operator logic.
Thanks in advance,
-
- Premium Member
- Posts: 397
- Joined: Wed Apr 12, 2006 2:28 pm
- Location: Tennesse
My source Table for COL_DT Type = Date, Length = 10 and Nullable = Y.samsuf2002 wrote:Are you getting any warnings ? Can you send me your date format ,is it a date or time stamp field?
My Target Table for COL_DT is Type = Timestamp, Length = 23 Scale = 3, Nullable = Y.
I am doing DateToString conversion.
Yes I am getting warnings see above I have pasted the warnings.
Thanks in advance,