How to update a variable in Data Flow component of lookup has rows that don't find matches
Hi
I'm using SSIS 2008
I have a data flow that gets data from an Excel spreadsheet. It then does numerous lookups to my database to ensure that all the entities in the spreadsheet are present in my dimension tables. For each of these lookups, I redirect rows with
"no matching entries" to be written to another spreadsheet which is then sent to an email address for action.
I have a Package scoped variable that I want to update if any of the lookups have rows with no matching entries. This is used later in the package to determine if it should proceed or not. So this variable only needs to be updated once if any of the lookups
fail.
What are the options for doing this? What is the best way?
ThanksCraig Bryden - Please mark correct answers
October 22nd, 2010 3:45am
You can use a row count transformation and connect it to the error output of lookup component. Once the data flow task is complete, this variable contains the total number of rows that failed at that particular lookup. If you have more than one lookup,
you have to use as many number of row count transforms.Nitesh Rai- Please mark the post as answered if it answers your question
Free Windows Admin Tool Kit Click here and download it now
October 22nd, 2010 3:57am
Nitesh beat me to it. ;)
October 22nd, 2010 3:59am
Thanks Nitesh
I can see how that would work. I assume all the Row Count transforms can write to the same Variable?
Craig Bryden - Please mark correct answers
Free Windows Admin Tool Kit Click here and download it now
October 22nd, 2010 4:18am
Yes they can write to same or different variables.Nitesh Rai- Please mark the post as answered if it answers your question
October 22nd, 2010 4:23am