Lookup Failure

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
sanjayS
Participant
Posts: 16
Joined: Mon Apr 18, 2011 10:56 pm

Lookup Failure

Post by sanjayS »

Hi all,

Am using two datasets,one as source and another as reference to lookup.The output from lookup is stored in a file.

1) In source link, am using Column Emp with values as 'Kumar' and 'sanjay'
2) In reference link, am using Column Emp with value as 'Kumar'
and Column City with value 'Chennai'

In output i have extracted Columns Emp and City
But while runnning the job gets aborted with log
Failed a key lookup for record 1 key values:Emp:sanjay
abhilashnair
Participant
Posts: 284
Joined: Fri Oct 13, 2006 4:31 am

Post by abhilashnair »

This is happening because the lookup stage is beiong told to abort whenever it does not finds a match. As the lookup is able to find only one match and not the other it is failing

Inside Lookup stage, open properties and change the condition for lookup failure. You have to change it to continue
sanjayS
Participant
Posts: 16
Joined: Mon Apr 18, 2011 10:56 pm

Lookup warning

Post by sanjayS »

Thanks for you reply. It is running now,but showing one warning as

'Ignoring Duplicate entry at table record 6:nofurther warning will be issued for this table'

Please clarify.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

You have not enabled multiple record return from the reference link.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply