Avoid triggering event handler

Anudeep Pabbathi 6 Reputation points
2021-04-09T14:09:39.423+00:00

I have a SSIS package with multiple task and created a on error event handler at package level with mail task. In those task one script task is also there, if the script task is failed, then I don't want to fire event handler. How can we achieve this?

I kept disable event handler property set to True for the script task alone, even though it is triggering event handler.

SQL Server Integration Services
SQL Server Integration Services
A Microsoft platform for building enterprise-level data integration and data transformations solutions.
2,702 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. ZoeHui-MSFT 41,491 Reputation points
    2021-04-29T06:02:58.017+00:00

    Hi @Anudeep Pabbathi ,

    Not fully understand your meaning.

    Could you please share the tasks in control flow so that we could get details about the issue?

    Such like below:

    92476-screenshot-2021-04-29-140135.jpg

    Also you may refer integration-services-ssis-event-handlers for details.

    Regards,

    Zoe


    If the answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
    Hot issues October

    0 comments No comments

  2. Jakub K 101 Reputation points
    2021-04-30T05:26:14.587+00:00

    The only way that i can think of is to trick the package into thinking the script task was successful. Not sure if that's what you want though

    Add some error handling to catch the error in the script, log it if required and and convert it to .Success instead of .Failure

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.