Lookup stage: Failed on a key lookup

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
koolraul
Participant
Posts: 2
Joined: Wed Apr 20, 2016 10:16 am

Lookup stage: Failed on a key lookup

Post by koolraul »

Hi,
I'm encountering an error in the Lookup stage which is failing on a key lookup for record 1 Key Value. The source data is from a dataset and the lookup table is from a DB2 table through a DB2 Connector. However, the key values that are causing the failure is both in the dataset and database table. But for some reason, the Datastage Lookup stage can't seem to match the key values from the dataset and database table. Would there be any possible reason why the Datastage Lookup stage might be behaving this way? We tested this in our development environment successfully but when it was deployed and ran in our production environment, it was failing. Any thought and suggestion is really appreciated. Thank you.
Raul
USAA
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Re: Lookup stage: Failed on a key lookup

Post by ray.wurlod »

Check that the exact value is in both the stream and reference data. For example, that there are no trailing space characters that you can't see.
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