Lookup failure

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
DS_MJ
Participant
Posts: 157
Joined: Wed Feb 02, 2005 10:00 am

Lookup failure

Post by DS_MJ »

Hello:

Source File - Sequential file
Target Seq File

Code: Select all

            Reject Seq file
                 |
                 \/
Seq file ---> Filter --> Lookup -----> Transformer_2 ----> Seq File
                 |         /\
                 |         /
                 \/   --/
         Transformer_1

Requirement:

Input Seq File has column NAME, and ID
I want to look in column NAME for values "A" and "B"
and look in column ID for value

If NAME = "A" and ID = '1' AND
if NAME = "B" and ID = '1' then output record where NAME = 'B'

What I am doing:

I am using the filter stage where NAME = 'A'
Where Name = 'B'
sending NAME = 'A' in one output link to a lookup stage and NAME = 'B' in second output link the transformer.

Doing a lookup from the transformer to the lookup stage based on ID.

Sending the output to transform_2 and set a constraint in the transform_2 to output NAME = 'B' to the seq file.

When I run the job get the following errors:
Lookup_90: When checking operator: On output data set 0: Dropping component "NAME" because of a prior component with the same name.

Lookup_90: When checking operator: On output data set 0: Dropping component "ID" because of a prior component with the same name.

Lookup_90: When checking operator: On output data set 0: Dropping component "XYZ" because of a prior component with the same name.
DCSDIM_DCSCIM_DCSDIU,0: Progress: 10 percent.
DCSDIM_DCSCIM_DCSDIU,0: Progress: 90 percent.
DCSDIM_DCSCIM_DCSDIU,0: Import complete; 45558 records imported successfully, 0 rejected.
Reject,0: Export complete; 0 records exported successfully, 0 rejected.
C_AR_003_7_14_06_1_27_PM_5(Xfm_2).#0.Xfm_2: DSD.StageRun Active stage finishing.
0 rows read from Lkp_Out
0 rows written to tgt
0.010 CPU seconds used, 0.027 seconds elapsed.
Output,0: Export complete; 0 records exported successfully, 0 rejected.
main_program: Step execution finished with status = OK.
main_program: Startup time, 0:02; production run time, 0:00.
Parallel job reports successful completion
Finished Job C_AR_003_7_14_06_1_27_PM_5.


QUESTION
Why is it giving that error...? Whats wrong?
What does this error mean?
Thanks in advance,
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

Are you sure that you are doing a lookup over the transformer :!:
Change the name of the Filed name in either one of the like from NAME, ID and XYZ to something else.
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
ashwin141
Participant
Posts: 95
Joined: Wed Aug 24, 2005 2:26 am
Location: London, UK

Lookup failure

Post by ashwin141 »

Hi

Do you have any other stage between transformer and lookup?
Change the field names to something different and then try running it.
goriparthi
Charter Member
Charter Member
Posts: 57
Joined: Fri Feb 24, 2006 7:44 am

Re: Lookup failure

Post by goriparthi »

ashwin141 wrote:Hi

Do you have any other stage between transformer and lookup?
Change the field names to something different and then try running it.

hey,

we use dto get the exact same error in my last project , tried different ways but ultimately ended in doing the same job as it is from scratch because it something with the link names,
just give it a shot.


Raj
cwong
Charter Member
Charter Member
Posts: 26
Joined: Tue Apr 30, 2002 8:02 am
Location: Canada

Post by cwong »

Verify to un-check the run time column propagation in the job that created the lookup file set; also in the job that performed the lookup.

This would help ...
cwong
Post Reply