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

Redirect rows on error and fail component to recapture error description

$
0
0

Hi,

Requirement : I have a simple package which load flat file to SQL table. In case an error encountered while inserting or updating record to destination table

1) Error row needs to be redirected to error table. (Every destination table has an error table whose structure is similar to destination except data type of columns, In case of error table all columns will be varchar)

2) And at the same time I want to fail component so that i want to capture error detail from variable "System::ErrorDescription" (because i have an audit table which contains information like Package name, start time, End time, Status (In progress, Success and fail) and Error description

for Oledb destination component i have made the following changes as can be notice in the below image

1) I have set "On Error" property to "Redirect row"

2) I have set "Set this value to selected cell" property as fail component.

Issue: When i run the package "on Error" rows are redirecting to error table but data flow task is running successfully and hence i am not able to capture error description.

Any help is appreciated.





Viewing all articles
Browse latest Browse all 24688

Trending Articles



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