Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7908347
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T11:53:42+00:00 2026-06-03T11:53:42+00:00

I am building a SSIS Package and trying to implement Event Handlers. I want

  • 0

I am building a SSIS Package and trying to implement Event Handlers.

I want that whenever an error occurs anywhere in the complete process, a log entry should be made in the table with System::SourceName, System::ErrorDescription , System::ErrorCode and System::ExecutionInstanceGUID.

For this, I have created a table as shown below:

CREATE TABLE [dbo].[ErrorLog]([LogID] [int] IDENTITY(1,1) NOT NULL,
[ExecutionID] [nvarchar](255) NULL,[SourceName] [varchar](255) NOT NULL,
[Message] [nvarchar](max) NOT NULL,
[MessageCode] [int] NOT NULL,
[LogDateTime] [datetime] NOT NULL
) ON [PRIMARY]

I have created an OnError Event Handler at the Package level.
The Sql query used is
INSERT INTO [ErrorLog]([ExecutionID],[SourceName],[Message],[MessageCode],
[LogDateTime]) VALUES(?,?,?,?,getdate())

The issue I am facing is, whenever, an Error occurs anywhere in the Package the Event Handler does goes Green showing its invocation but the table in the database does not show the entry.

However, I am sure that a row does gets inserted each time an error occurs as whenever I create a new row in that table manually, a new row gets added with the next identity value for the column [LogID] .

For Example, suppose the value in the LogID Column is 74 and an error occurs in the package, NO row gets added and when I insert a record manually in the ErrorLog Table the identity inserted is 76.

Not sure what is going wrong.

I am in this fix and would really appreciate any help.

Thanks
Mohit

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T11:53:43+00:00Added an answer on June 3, 2026 at 11:53 am

    This looks like the insert is being rolled back.

    Do you have transaction control on your package?

    To test I would set the transaction support property on the component on the onerror even and the task that triggered the error to NotSupported. It indicates the task won’t participate on any transaction initiated by the package or any other parent task.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am building an SSIS package and getting an error when setting Name of
We are building a SSIS package for a customer where a lot of conversion
I'm building an SSIS package resposible for importing an Excel file sourced either from
building a site using PHP and MySQL that needs to store a lot of
Building a website that has English & Japanese speaking users, with the Japanese users
Building an iPhone OS application that will allow users to anonymously post information to
I'm developing an SSIS component and am trying to come up with a way
Building our Android app from Ant fails with this error: [apply] [apply] UNEXPECTED TOP-LEVEL
Building an NSCharacter set to restrict a UITextField for entering user names. I want
I am building my first datawarehouse in SQL 2008/SSIS and I am looking for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.