Null handling error

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
srinivas.nettalam
Participant
Posts: 134
Joined: Tue Jun 15, 2010 2:10 am
Location: Bangalore

Null handling error

Post by srinivas.nettalam »

Hello Everyone,
I have an if..then..else expression used ina stage variable.
The derivation is like if NullToZero(col1)=NullToZero(col2) then 'A' else 'B'

The job aborted due to the error "Null handling function called on not nullable field" that message is in high level and I am unable to debug.

Usually null handling is done for not nullable fields right?Please let me know the reason for the error
N.Srinivas
India.
viswanath123
Participant
Posts: 3
Joined: Thu Mar 17, 2011 12:29 am

Re: Null handling error

Post by viswanath123 »

U might hve confused with that.. Normally Null handling is done for Nullable fields.
srinivas.nettalam
Participant
Posts: 134
Joined: Tue Jun 15, 2010 2:10 am
Location: Bangalore

Re: Null handling error

Post by srinivas.nettalam »

viswanath123 wrote:U might hve confused with that.. Normally Null handling is done for Nullable fields.
I meant not nullable field in the end not from the input..sorry
N.Srinivas
India.
soumya5891
Participant
Posts: 152
Joined: Mon Mar 07, 2011 6:16 am

Re: Null handling error

Post by soumya5891 »

Check the nullability defined in the Output column.It should be null.
Soumya
srinivas.nettalam
Participant
Posts: 134
Joined: Tue Jun 15, 2010 2:10 am
Location: Bangalore

Re: Null handling error

Post by srinivas.nettalam »

soumya5891 wrote:Check the nullability defined in the Output column.It should be null.
just to handle that i am handling null in the derivation so tht it always has values
N.Srinivas
India.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Seems to be saying that (at least) one of your input columns is not nullable.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply