Link to home
Start Free TrialLog in
Avatar of banjara15
banjara15

asked on

SSIS Merge Join Error


I am using SSIS (Sql Server 2005). I have created a SSIS Package, I am trying to use a "Merge Join" Transformation in the Package but keep getting this error (See the attached screen shot). Please help me to resolve this...

Thanks
SSIS-Problem.doc
Avatar of Reza Rad
Reza Rad
Flag of New Zealand image

you can add sort transformation before merge join for both sources, this will solve the problem
ASKER CERTIFIED SOLUTION
Avatar of Reza Rad
Reza Rad
Flag of New Zealand image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of banjara15
banjara15

ASKER


Reza_red,

I am using a query in the OLE DB source which is sorted, I do not want to use the Sort Transformation as that will affect the performance. I do not understand why can't the Merge Join transformation see that the data is sorted and still giving me the error. Is there any place else I need to set the "IsSorted" property to "True"?

Thanks
Thanks for your help. I made some changes to the package and removed all intermediate transformations between OLE DB soure and Merge join, now I am able to use the "Merge join" transformation without any problem.
Merge Join needs to have sorted data get in.
so if you want to send data to merge join, you must set IsSorted to True, OR use Sort transformation.
but in your case why setting IsSorted To True didn't solved the problem, because you used transformations after first oledb source, SSIS compiler needs to sure that data in is sorted, you have no  IsSorted property in UNION ALL transformation . so you HAVE TO use sort transformation after that.
and you removed all intermediate transformation , this will connect first oledb source with IsSorted Property to Merge Join and so everything is fine now.

Regards,
Reza Rad