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

SSIS: Acquiring name for prior data flow component

$
0
0

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!


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>