Getting NULL handling warning even when checking for NULL

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
Abhyankar
Participant
Posts: 15
Joined: Thu Jan 01, 2009 11:04 pm

Getting NULL handling warning even when checking for NULL

Post by Abhyankar »

Hi,
My Job uses 2 sources, then a change capture stage then inserting the changed records in my DB2 stage. I am getting below mwnetioned warning:

" Assignment of a NULL value to a NOT NULL column "TBSPACEID=4, TABLEID=114, COLNO=0" is not allowed. SQLSTATE=23502 "

I am getting this even though i am checking for NULLs in a transformer stage just before target stage. My null handling condition says to check for null, if it exits populate a ' ' else the value.
Mike
Premium Member
Premium Member
Posts: 1021
Joined: Sun Mar 03, 2002 6:01 pm
Location: Tampa, FL

Post by Mike »

You're most likely getting this error because the columns mentioned in your DB2 stage are not consistent with the columns defined in the database table. Specifically "COLNO=0" would be the first column in the database table...

Mike
Abhyankar
Participant
Posts: 15
Joined: Thu Jan 01, 2009 11:04 pm

Post by Abhyankar »

Thanks mike. Will check that!
Post Reply