Failed a KeyLookup for Record

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
just4geeks
Premium Member
Premium Member
Posts: 644
Joined: Sat Aug 26, 2006 3:59 pm
Location: Mclean, VA

Failed a KeyLookup for Record

Post by just4geeks »

I have a simple job that uses a lookup stage to lookup a column from Database A into a similar column in Database B and extract the values in the relevant columns from Database B into a flat file. The lookup column has the same definition Integer( 8 ) in both the databases.

I get the following errors when I run the job.

Lookup_2,0: Failed a keylookup for record.
Lookup_2,0: The runLocally() of the operator failed.

And then the job fails.
Step execution finished with status = FAILED.

Does anyone have any idea? Thanks for your time.
Attitude is everything....
bcarlson
Premium Member
Premium Member
Posts: 772
Joined: Fri Oct 01, 2004 3:06 pm
Location: Minnesota

Post by bcarlson »

You can tell the lookup what to do when a match is not found for a record - fail, continue, reject. Check out the documentation or online help for lookup for how to set this.

Brad.
karrisuresh
Participant
Posts: 57
Joined: Sat Jun 09, 2007 1:14 am
Location: chicago

Re: Failed a KeyLookup for Record

Post by karrisuresh »

Hi

In the look-up u have to mention
what if the condition fails
and look-up fails
by default it fails the job which in ur case aborting the job
please have a check in that area

thanks
Suresh
just4geeks wrote:I have a simple job that uses a lookup stage to lookup a column from Database A into a similar column in Database B and extract the values in the relevant columns from Database B into a flat file. The lookup column has the same definition Integer( 8 ) in both the databases.

I get the following errors when I run the job.

Lookup_2,0: Failed a keylookup for record.
Lookup_2,0: The runLocally() of the operator failed.

And then the job fails.
Step execution finished with status = FAILED.

Does anyone have any idea? Thanks for your time.
Hi I have experience in parallel extender datastage I am ready to give/take help from other
hope we all help each other hand in hand
karrisuresh
Participant
Posts: 57
Joined: Sat Jun 09, 2007 1:14 am
Location: chicago

Re: Failed a KeyLookup for Record

Post by karrisuresh »

Hi

In the look-up u have to mention
what if the condition fails
and look-up fails
by default it fails the job which in ur case aborting the job
please have a check in that area

thanks
Suresh
just4geeks wrote:I have a simple job that uses a lookup stage to lookup a column from Database A into a similar column in Database B and extract the values in the relevant columns from Database B into a flat file. The lookup column has the same definition Integer( 8 ) in both the databases.

I get the following errors when I run the job.

Lookup_2,0: Failed a keylookup for record.
Lookup_2,0: The runLocally() of the operator failed.

And then the job fails.
Step execution finished with status = FAILED.

Does anyone have any idea? Thanks for your time.
Hi I have experience in parallel extender datastage I am ready to give/take help from other
hope we all help each other hand in hand
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Etiquette Note
When a thread is marked as Resolved convention requires that a post is made indicating how it was resolved.


I suspect in this case that the default Lookup Failed rule (Fail) was changed to Continue, Drop or Output. But I don't know for sure.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
just4geeks
Premium Member
Premium Member
Posts: 644
Joined: Sat Aug 26, 2006 3:59 pm
Location: Mclean, VA

Re: Failed a KeyLookup for Record

Post by just4geeks »

I changed the default response to failed look-up from failure to continue. And the job worked successfully.

Thanks Suresh and Brad for your responses.
Attitude is everything....
Post Reply