Page 1 of 1

Rows Getting Rejected in transformer

Posted: Mon Sep 05, 2011 4:37 am
by mac4rfree85
Hi guys,

My job is a simple job with a Source(Oracle DB) , a transformer and Target(oracle Db).

From source, i am getting 2 columns. In transformer, i will pass only one column(col1) and in constraint i am giving the IsNull(Col2).

The Col1 is Varchar(15) both in source and target. But for some reason, all the rows are gettting rejected.

Can somebody help me to understand as why all the rows are getting rejected. (For debug purpose, i added a seq file as a reject file).

Cheers!!!!!

Posted: Mon Sep 05, 2011 5:26 am
by arvind_ds
Why are you using IsNull(Col2) in constraints in Transformer stage.? What is your requirement?

Posted: Mon Sep 05, 2011 5:34 am
by udayk_2007
IsNull function returns true when a expression evaluates to Null. It may be the case that all the values in col2 are not null which is causing this condition to be false for all the rows.
Did you tried using IsNotNull. Not Sure if that will solve the problem but you can give it a try.

Posted: Mon Sep 05, 2011 7:51 am
by chulett
Define for us what "rejected" means here. Are they not going down your link because the constraint is false or is Oracle rejecting them?