Lookup Mismatch of Records

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
Nareshkurra
Participant
Posts: 21
Joined: Mon Aug 04, 2008 8:34 am
Location: Guntur

Lookup Mismatch of Records

Post by Nareshkurra »

Hi,

I am facing an issue with the lookup stage in DataStage.Please find the details below.

I am having sequential file as source which has a column name as below

column name Datatype
question_description Varchar

Now my requirement is i should have a lookup on the dimension table on question_description column and pass only the records that are matching

I have linked the source column and the lookup column in the lookup stage and enabled the property lookup failure reject or else continue to the target

The issue is i have record What is your name? in the source record and the same record exists in my dimension table, but during the lookup the lookup stage is rejecting the record eevnthough it is existing in the table.

Can anyone please help me to figure out this
Naresh
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Are the two values spelled, trimmed and cased identically? Is your VarChar large enough for this string?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Nareshkurra
Participant
Posts: 21
Joined: Mon Aug 04, 2008 8:34 am
Location: Guntur

Post by Nareshkurra »

Hi,

Please find the answers for the questions you have mentioned.

a)The two values are spelled,trimmed and cased identically.
b)The Varchar length has been specified to 256.

Please find the sample record.

What is your name?(Record from source)
What is your name?(Record from lookup table)

Thanks,
Naresh
Naresh
Sainath.Srinivasan
Participant
Posts: 3337
Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom

Post by Sainath.Srinivasan »

From the looks, it must grab the correct row.

Are there any successful lookups also? If yes, try to find what is common in the successful ones which is not in the failed.
algfr
Participant
Posts: 106
Joined: Fri Sep 09, 2005 7:42 am

Post by algfr »

Could there be an issue with NLS or local language features ? Special Chars ?
jcthornton
Premium Member
Premium Member
Posts: 79
Joined: Thu Mar 22, 2007 4:58 pm
Location: USA

Post by jcthornton »

How many nodes is this running on? What are the partitioning settings?

That can also cause a lookup failure, even when it should otherwise match.
Jack Thornton
----------------
Spectacular achievement is always preceded by spectacular preparation - Robert H. Schuller
Post Reply