my source is teradata table. my target is also a teradata table. I have to do lookup get the related records where there is key match. My source has 3 rows.and my look up table has 3 rows.
source data
State sourcename Records
MI xxx 100
WI yyy 200
CA zzz 555
LookupData
State sourcename Loaddate
WI xxx 2007-06-07
MI yyy 2005-09-06
CA zzz 2007-06-07
I am joining these two tables using a lookup stage using 2 key columns(State and sourcename).The job gets aborted with an error "Failed a key lookup for record".When there is a key match my job gets aborted. The same logic worked for a different job.This jobs gets aborted.am I missing anything?
rows getting dropped from look up stage
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 73
- Joined: Tue May 10, 2005 6:21 pm
- Location: Sydney
Re: rows getting dropped from look up stage
Did you notice that the first two records of the source don't match the lookup? You can change the action for the Lookup Failure condition if you want the job to contine.
Hope wrote:my source is teradata table. my target is also a teradata table. I have to do lookup get the related records where there is key match. My source has 3 rows.and my look up table has 3 rows.
source data
State sourcename Records
MI xxx 100
WI yyy 200
CA zzz 555
LookupData
State sourcename Loaddate
WI xxx 2007-06-07
MI yyy 2005-09-06
CA zzz 2007-06-07
I am joining these two tables using a lookup stage using 2 key columns(State and sourcename).The job gets aborted with an error "Failed a key lookup for record".When there is a key match my job gets aborted. The same logic worked for a different job.This jobs gets aborted.am I missing anything?
Edward Yuan
Re: rows getting dropped from look up stage
that's because you set constraints in lookup stage if lookup fail,then fail,that's the default option,you can choose others,
MaDFroG