Records Drop Due to NULL
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 137
- Joined: Sun Jan 07, 2007 11:17 pm
- Location: VISAKHAPATNAM
Records Drop Due to NULL
Hi,
I am loading a table with a data coming from csv file,
It has null values in it,
the column which has null is being used in stage variable and constraints,
if not used in constraints, and stage variable then it never drops the records...if used it does so.
i have used isnull to check if the column is null or not..if its null i am rejecting the record (in stage variable and constraints)
Please suggest ,
thanku
I am loading a table with a data coming from csv file,
It has null values in it,
the column which has null is being used in stage variable and constraints,
if not used in constraints, and stage variable then it never drops the records...if used it does so.
i have used isnull to check if the column is null or not..if its null i am rejecting the record (in stage variable and constraints)
Please suggest ,
thanku
Shivaranjani
-
- Participant
- Posts: 137
- Joined: Sun Jan 07, 2007 11:17 pm
- Location: VISAKHAPATNAM
-
- Participant
- Posts: 137
- Joined: Sun Jan 07, 2007 11:17 pm
- Location: VISAKHAPATNAM
Here is the derivation for value column:
before:if NUM(Trim((INP_1.Value))) = 1 or trim((INP_1.Value)) = ''
Then 0
else 1
AND
Now:
if NUM(Trim(NULLTOEMPTY(INP_1.Value))) = 1 or trim(NULLTOEMPTY(INP_1.Value)) = ''
Then 0
else 1
The records are not getting dropped but still the warning is there
saying
"APT_CombinedOperatorController,0: Null string argument."
before:if NUM(Trim((INP_1.Value))) = 1 or trim((INP_1.Value)) = ''
Then 0
else 1
AND
Now:
if NUM(Trim(NULLTOEMPTY(INP_1.Value))) = 1 or trim(NULLTOEMPTY(INP_1.Value)) = ''
Then 0
else 1
The records are not getting dropped but still the warning is there
saying
"APT_CombinedOperatorController,0: Null string argument."
Shivaranjani
-
- Participant
- Posts: 137
- Joined: Sun Jan 07, 2007 11:17 pm
- Location: VISAKHAPATNAM
Please suggest how to remove this warning;
G SHIVARANJANI wrote:Here is the derivation for value column:
before:if NUM(Trim((INP_1.Value))) = 1 or trim((INP_1.Value)) = ''
Then 0
else 1
AND
Now:
if NUM(Trim(NULLTOEMPTY(INP_1.Value))) = 1 or trim(NULLTOEMPTY(INP_1.Value)) = ''
Then 0
else 1
The records are not getting dropped but still the warning is there
saying
"APT_CombinedOperatorController,0: Null string argument."
Shivaranjani
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Disable operator combination to isolate the stage that is generating the error.
Try using casing as per the manual for the function names, for example NullToEmpty().
Try using casing as per the manual for the function names, for example NullToEmpty().
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.
Handling Null values
ray.wurlod wrote:Disable operator combination to isolate the stage that is generating the error.
Try using casing as per the manual for the function names, for example NullToEmpty(). ...
while reading csv file you have a option Nullabe =yes/No
try that option
-
- Participant
- Posts: 137
- Joined: Sun Jan 07, 2007 11:17 pm
- Location: VISAKHAPATNAM
Re: Handling Null values
Hi,
As the warning still persists,
the job is aborting if the number of warnings is greater than 50
Please suggest how can i remove this warning.
As the warning still persists,
the job is aborting if the number of warnings is greater than 50
Please suggest how can i remove this warning.
Shivaranjani
-
- Participant
- Posts: 137
- Joined: Sun Jan 07, 2007 11:17 pm
- Location: VISAKHAPATNAM
Actually i have put up a check for a field comming from source which is nullable:
The transformer uses stagevariable as
If NUM((NullToEmpty(INP_1.Value))) = 1 or NullToEmpty(INP_1.Value) = '' then 0 else 1
if this not used it do not give any warning if used it gives warning;
and the source value INP_1.Value has null values in it
thanku
The transformer uses stagevariable as
If NUM((NullToEmpty(INP_1.Value))) = 1 or NullToEmpty(INP_1.Value) = '' then 0 else 1
if this not used it do not give any warning if used it gives warning;
and the source value INP_1.Value has null values in it
thanku
nsm wrote:Hi you can have a message handler defined to filter the warning from log if any of the specified methods didn't work.
Shivaranjani
-
- Participant
- Posts: 137
- Joined: Sun Jan 07, 2007 11:17 pm
- Location: VISAKHAPATNAM
-
- Participant
- Posts: 137
- Joined: Sun Jan 07, 2007 11:17 pm
- Location: VISAKHAPATNAM
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact: