Source is a flat file and want to load unique and duplicate
records separately into two separate targets; right??

Answer Posted / nitin

Create the mapping as below to load Unique records and duplicate records each in separate targets

Source->SQ->Sorter->Aggregator->Router-> Tgt_Unique
-> Tgt_Duplicate
In aggregator use group by on all ports.
and define a port OUTPUT_COUNT = COUNT(*)
In the router define two groups OUTPUT_COUNT > 1 and OUTPUT_COUNT = 1; Connect the outputs from the first group
OUTPUT_COUNT > 1 to tgt_Duplicate and OUTPUT_COUNT = 1 to Tgt_Unique

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Source and Target are flat files, Source table is as below ID,NAME 1,X 1,X 2,Y 2,Y On Target flat file i want the data to be loaded as mentioned below ID,NAME,REPEAT 1,X,2 1,X,2 2,Y,2 2,Y,2 How to achieve this, Can i get a map structure

6661


What is a repository manager?

739


In informatica workflow manager, how many repositories can be created?

937


What is meant by lookup transformation?

698


State the limitations where we cannot use joiner in the mapping pipeline?

636






What are the settings that you use to configure the joiner transformation?

688


Differentiate between reusable transformation and mapplet.

701


What is a difference between complete, stop and abort?

740


How to generate sequence numbers without using the sequence generator transformation?

750


How do you manage the Parameter files while migrating your data from one environment to another environment?

653


Some flat files are there, out of these having some duplicate. How do you eliminate duplicate files while loading into targets?

1439


What do think which one is the better joiner or look up?

849


What is a predefined event?

751


What is the surrogate key?

741


What are the performance considerations when working with aggregator transformation?

780