I'm having an issue with a SSIS Lookup component. My source table has a string value (XXX), and I need to know if it exists on another table. If I make a query like
select AAA from dest_table where AAA = XXX
I DO get a matching result. This value does exists in both tables. But when I use a Lookup component, it doesn't find any matches and returns NULL (and this leads to a crash in all the next steps of my package). My lookup query is:
select AAA, BBB from dest_table group by AAA, BBB
I need BBB value for following ETL processes. Plus, I added a Multicast component so I can lead all the results I got from the lookup to a testing table, and at the same time let the package flow continue its course. And this testing table only has null values inside (meaning lookup didn't find a match)
What can be the reason behind this?
Thanks in advance!