Reference lookup generated %d rows.

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
singhald
Participant
Posts: 180
Joined: Tue Aug 23, 2005 2:50 am
Location: Bangalore
Contact:

Reference lookup generated %d rows.

Post by singhald »

Hi

Wht is the meaning of this warning message.
"Reference lookup generated %d rows. Only the last row was used"
I got this warning message on Transformer where i m using a lookup (informix stgae).

so can u plz give me sol or exactly meaning of this warning message.

Singhal
Regards,
Deepak Singhal
Everything is okay in the end. If it's not okay, then it's not the end.
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

singhald,

the message means exactly what it reported; you are doing a reference lookup but the key(s) that you used didn't return just one row but several. Since datastage uses only one value it had a to choose just one of those returned rows - in this case the last returned one.

You need to change your lookup criteria so that only a single row is returned.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

The only confusing part might be the missing 'number of rows' that were actually returned. All you are seeing is the place-holder %d for a decimal number that is not being populated and is a bug in the stage, I would think.

In the long run it doesn't really matter, however - Arnd nailed the gist of it. :wink:
-craig

"You can never have too many knives" -- Logan Nine Fingers
singhald
Participant
Posts: 180
Joined: Tue Aug 23, 2005 2:50 am
Location: Bangalore
Contact:

Post by singhald »

Hello Friends

I solved this problem. I added FIRST 1 in the select statement of sql ,
then the SQl statement return only one row at a time .
Thnks for your co-operation.

Deepak Singhal
Regards,
Deepak Singhal
Everything is okay in the end. If it's not okay, then it's not the end.
Post Reply