Chapter 17

Error and Event Handling


  • Working with precedence constraints
  • Creating failure flows with expressions
  • Defining SSIS events
  • Handling events in a package
  • Troubleshooting with breakpoints and logging

SQL Server Integration Services provides some valuable features that enable you to control the workflow of your SSIS packages at a very granular level. Functionality that you might expect to be available only by scripting can often be accomplished by setting a few properties of a component. In addition, SSIS comes with powerful error-handling capabilities, the capability to log detailed information as the package runs, and debugging functionality that speeds up troubleshooting and design.

This chapter walks you through controlling the package workflow, beginning at the highest level using precedence constraints and then drilling down to event handling. You’ll see how trappable events play a role in breakpoints, and how to perform exception handling for incorrect data in the Data Flow. Finally, you learn how these features can be used for troubleshooting, debugging, and building robust SSIS packages.


Precedence constraints are the green, red, and blue connectors in the Control Flow that link the tasks together and can be used to manage the workflow of a package and handle error conditions.


Be aware that blue precedence constraints ...

Get Professional Microsoft SQL Server 2012 Integration Services now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.