On Error () Logging by Using Event Handlers

  • Actually I am using Error handler to catch the error, collect all possible error description and send email with this information to operation support team

  • Hi,

    I am new to SSIS and followed the steps in this article as it is to create the error handler. If I execute the error handler SQL task manually it works fine and inserts into the DB but when the SSIS job fails it doesn't invoke the Error Handler at all. I have checked the DisableEventHandler property and it is set to False.

    I have also tried to use some help from the ticket

    http://social.msdn.microsoft.com/Forums/en-US/sqlintegrationservices/thread/e7fbe7e8-331f-49d5-88d3-715174688879 but that didn't help either.

    Can someone please guide me in the right direction. I am trying to resolve it for 2 days now.

    Thanks!

  • Dear Developer,

    It seems you are trying to run individual tasks in control flow instead of whole package. In that case, ssis will not execute the Event handler section. Try running the whole package.

    I have gone through your ticket http://social.msdn.microsoft.com/Forums/en-US/sqlintegrationservices/thread/e7fbe7e8-331f-49d5-88d3-715174688879

    After having a look on it, I can suggest you to mail me your package sample to me. I want to check it by myself about the error.

    My mail id: mail.arun2005@gmail.com

    Thanks

    Arun

  • Hi Arun,

    Though its been few years i guess you might see this post.

    I tried using your solution for catching the error log in SQL 2008 R2. But the thing is, the package after its run displaying the Execute SQL task's color to be in RED. also with the following error message,

    ------------------------------------------------------------------------------------------------------

    [Execute SQL Task] Error: Executing the query "INSERT INTO [<<Database Name>>].[dbo].[ErrorLog]

    ([Packa..."

    failed with the following error: "Incorrect syntax near 'PK__csod_dat__72399DD10CBAE877'.". Possible

    failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set

    correctly, or connection not established correctly.

    -------------------------------------------------------------------------------------------------------

    can you please help me here ?

Viewing 4 posts - 16 through 18 (of 18 total)

You must be logged in to reply to this topic. Login to reply