Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

SSIS: Scope of OnError Event Handler

Posted on 2010-09-04
4
Medium Priority
?
802 Views
Last Modified: 2013-11-10
My SSIS package uses a connection string populated by a user defined variable.

I want to put an event handler on the connection manager to execute a task when there is an error with the connection string.

I have tried placing my task in the OnError Event Handler.

Here is the problem...........I have testing it with a bad connection string but the error seems to be generated before the OnError has a chance to capture the problem.

Can anybody help?
0
Comment
Question by:Mr_Shaw
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 30

Accepted Solution

by:
Reza Rad earned 2000 total points
ID: 33605596
in Event handler tab,
set Executable with package (select  package name )
this means that on error will raise on every task in the package, and now you can find the error location exactly
0
 

Author Comment

by:Mr_Shaw
ID: 33606068
I'll give it a go when I get into the office on monday.. thanks for the tip.
0
 
LVL 30

Expert Comment

by:Reza Rad
ID: 33614815
I think you got your answer in TechNET. am I right?
0
 

Author Closing Comment

by:Mr_Shaw
ID: 33615933
Thanks..
0

Featured Post

NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

Question has a verified solution.

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

In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
Windocks is an independent port of Docker's open source to Windows.   This article introduces the use of SQL Server in containers, with integrated support of SQL Server database cloning.
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

670 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