Click here to Skip to main content
15,888,984 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

Is there any way to email the error code from ssis when the job fails? whatever error code gets thrown out I want to have it mailed for error notification. Is this possible to get the same error description and code from the job history via email?

thanks.
Posted

Hi,

Yes it is possible to send complete error detail via email from SSIS package, you can use package level error handler and place script task withing it to send email whenever any error occur at package level in any task.

You need to set Package level variable with your error detail from your task, and then use this variable in your Script task to send email. You need to write C# code here to send email using SMTP server set your error detail in email body from variable,

Onemore thing you can do, you can also utilize system varaibles as input to your script task( e.g. system::errorcode,system:errordescription) , which holds information related to error and use this varibale detail in email message body and then send email.


let me know if you need anyother detail.

Regards,
Mubin
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900