Hi,
I have a requirement, the source is N no.of files. I have to loop through all the file(contains 5 columns col1, col2, col3, col4) and aggregate the results based on column 1,2 and other file based on column 1,2,3. Column 4 contains the numeric values.
Eg: Col1 Col2 Col3 Col4 Col5
A PD SP 1 abc
A PD SP 2 mnp
A PD LP 3 pqr
So, the output1 should be:
A PD SP 3
A PD LP 3
And 2nd output file is:
A PD 6
I have done this using SSIS Package. Now the thing is the same 'A PD LP 3 pqr' can exist in multiple input files. So after for each loop, I can still see duplicates in the 2nd output file. So What I have done is, I have let only Output1 will be loaded in the for each loop and after the For each loop completion, I have added a DFT and used the Output1 file as source and aggregated the results to load into Output file2.
In this new DFT, I have to use Derived column to convert the value from str to integer so I have make it (DT_I8)Value. But the package is failing at Derived column. If I Disable the For Each Loop Container then the new DFT is completing without any errors. So Can I use the target file that is loaded in For Each Loop as a source in the DFT added after For Each Loop please..?
Please help me out.
Thanks.