Problem with Lookup
Moderators: chulett, rschirm, roy
Problem with Lookup
Hi,
I have a input dataset with one field "Id" as key. I am doing a lookup using a lookup stage with a DB2 table based upon "Id". But I am getting the following error ...
lookupstage: Error when checking operator: Key field "Id" not found in input schema
But if I perform lookup with anyother field in the dataset I am not getting any error.
Please help me out .
Cheers
Debasis
I have a input dataset with one field "Id" as key. I am doing a lookup using a lookup stage with a DB2 table based upon "Id". But I am getting the following error ...
lookupstage: Error when checking operator: Key field "Id" not found in input schema
But if I perform lookup with anyother field in the dataset I am not getting any error.
Please help me out .
Cheers
Debasis
-
- Premium Member
- Posts: 196
- Joined: Tue Nov 23, 2004 11:50 pm
- Location: Sydney (Australia)
Hi,ArndW wrote:If it is present in the dataset schema then you are left with the link coming from DB2. That is supported by the error message noting the "key" field is missing. ...
Can you please tell me how to get rid of this error. I checked the dataset schema and also removed and recreated the lookup link. But no luck..
Cheers
Debasis
Debasis,
Are the column names of the field you are defining as key same in both input link and reference link?
If so, Try renaming the either of the key field and then perform a lookup. e.g you could mention the reference column name as Id1 by writing a userdefined sql.
Try this and let us know whether it worked.
Are the column names of the field you are defining as key same in both input link and reference link?
If so, Try renaming the either of the key field and then perform a lookup. e.g you could mention the reference column name as Id1 by writing a userdefined sql.
Try this and let us know whether it worked.
Thanks
DSDexter
DSDexter
Hi,DSDexter wrote:Debasis,
Are the column names of the field you are defining as key same in both input link and reference link?
If so, Try renaming the either of the key field and then perform a lookup. e.g you could mention the reference column name as Id1 by writing a userdefined sql.
Try this and let us know whether it worked.
the column names are different .. But when i changed the lookup to sparse it is working fine.. Although this is a workaround and can be done in this way but still the question is open that why it is not working in normal lookup.
Thanks to all who joined this discussion . If any one of us find this solution please post it.
Cheers
Debasis
-
- Participant
- Posts: 8
- Joined: Thu Feb 21, 2008 4:22 am
Lookup
How to change normal Lookup to Sparse Lookup?
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact: