Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

Can't get Union All to work in SSIS 2012

$
0
0

Hello;

I am using SSIS 2012 and have this situation.

I use a multicast transform so I can branch off and do 8 simultaneous Lookups to get the date key from my time table. There is one for each state that a problem report can be in.

I need to then merge everything back into a single stream. Merge & Merge Join don’t work because they only have one input and the Union transform is not creating 8 columns as expected but 8 times my inputs. What I would like to get is one column for each state like this:

Output column name:

PRID = Union All Input 1 (PRID)

SubmittedDateKey = Union All Input 1 (SubmittedDateKey)

AssignedDateKey = Union All Input 2 (AssignedDateKey)

AnalyzingDateKey = Union All Input 3 (AnalyzingDateKey)

ImplementingDateKey = Union All Input 4 (ImplementingDateKey)

Etc.

Etc.

What I am getting is this:

Output column name:

PRID = Union All Input 1 (PRID)

SubmittedDateKey = Union All Input 1 (SubmittedDateKey)

Then it repeats the sequence for each state (8 times) but only with SubmittedDateKey as the column instead of 8 columns as defined in the Union All.

Any ideas as to what I am doing wrong and how I can achieve what I need to get as a result?

Thanks in advance for the help.


Thanks Ron...


Viewing all articles
Browse latest Browse all 24688

Trending Articles