[Last Call] Learn how to a build a cloud-first strategyRegister Now


Error to variable in SSIS

Posted on 2012-08-16
Medium Priority
Last Modified: 2012-08-21
I have an SSIS package that runs a data flow task. I am trying to send out and email and write to a progress log if the task succeeds or fails.

If the data flow task fails how can I insert the failure reason into the a variable for later use in an email / sql statement?

Question by:ubya308
LVL 40

Accepted Solution

lcohan earned 1000 total points
ID: 38301422
Please see SSIS logging and as far as emailing the error I believe you can use BEGIN/TRY/CATCH to see if there's some error and send an email if there is from the t-sql SSIS task. otherwise you can log it into a SQL table and put a trigger on that table to send an email if some error encountered - like an insert trigger where the message contains the error.

LVL 14

Assisted Solution

by:nishant joshi
nishant joshi earned 1000 total points
ID: 38301831
first create new global variable of package which whould be blank and create one local variable in error handlert.if error raise then on expression concate the variable strings...

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have a large data set and a SSIS package. How can I load this file in multi threading?
Recently we ran in to an issue while running some SQL jobs where we were trying to process the cubes.  We got an error saying failure stating 'NT SERVICE\SQLSERVERAGENT does not have access to Analysis Services. So this is a way to automate that wit…
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.
Suggested Courses

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question