SSIS: Acquiring name for prior data flow component
I'm trying to enhance my error logging in SSIS. In addition to using SSIS's built in logging (OnError, OnWarning, etc.) which gets saved to sysssislog, I also keep track of specific rows that get redirected to error outputs (I convert the rows to xml, add the name of the package and data flow task, and drop the rows into a table in the database). I'm trying to enhance the information captured when tracking redirected error rows by also including which data flow component threw the error. My problem is that I can't figure out how best to pass on the component name so it becomes part of the workflow. The first thought I had was to create a custom component that would capture this information, but I can't seem to find a way to backtrack from an IDTSInput100 object back to its associated IDTSPath100 object. If I could do that, then I think I could get the ID of the IDTSOutput100 object associated with it and then go one step back further so I could get the metadata from the prior component in the data flow. Any advice on how best to accomplish my ultimate goal? Thanks for the help!
January 9th, 2013 5:55pm

Not able to understand your exact requirement. Possible to give some more details or like put some sample code or error.
Free Windows Admin Tool Kit Click here and download it now
January 9th, 2013 7:42pm

I figured it out! I used the GetVirtualInput method for each IDTSInput100 object and then accessed the IDTSVirtualInputColumn100 objects to find the UpstreamComponentName. There has got to be an easier way, but at least I was able to do what I needed.
January 14th, 2013 2:41pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics