Hi ,
I have a job, where Data from Teradata goes to Hashfile and then to transformer. And doing a lookup with DB2 , in Transformer, where file data goes to flatfile.
TD-----HS
DB2----- Trans------Flatfile
When i run the job, i am getting some 10000's of warinings like below:
Transformer_50: Reference lookup generated 2 rows. Only the last row was used.
Please help me how to get rid of these warnings.
Thanks in advance.
Terdata to DB2 lookup
Moderators: chulett, rschirm, roy
Hi
Is Teradata is your source or lookup?. This error occurs when the lookup returns more than one match. Try to remove duplicates when creating references.
Regards
Is Teradata is your source or lookup?. This error occurs when the lookup returns more than one match. Try to remove duplicates when creating references.
Regards
Regards
Siva
Listening to the Learned
"The most precious wealth is the wealth acquired by the ear Indeed, of all wealth that wealth is the crown." - Thirukural By Thiruvalluvar
Siva
Listening to the Learned
"The most precious wealth is the wealth acquired by the ear Indeed, of all wealth that wealth is the crown." - Thirukural By Thiruvalluvar
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Because you are performing a lookup against a partial key or secondary key, it is possible that more than one row might be returned. The DB2 stage is not equipped to return multiple rows on a reference lookup, so generates the message.
You have three choices.
You have three choices.
- Use an ODBC stage, which does have multi-row return capability, to access the DB2 table.
Change the SQL so that the query can only deliver one row (for example limit the rownumber to 1, or get the first or last row selected).
Change the operation so that you are performing a lookup against the primary key (which, by definition, is unique).
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Terdata to DB2 lookup
Hi,
I have taken the 3rd Option.
Thanks
I have taken the 3rd Option.
Thanks
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact: