﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / SQL Server 2005 / SQL Server 2005 Integration Services  / Event Handlers in SSIS(OnError &amp; OnPostExecute) / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Tue, 18 Jun 2013 20:28:28 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Event Handlers in SSIS(OnError &amp; OnPostExecute)</title><link>http://www.sqlservercentral.com/Forums/Topic625436-148-1.aspx</link><description>I understood your problem, even i faced the same problem.Where i used to store the results of OnError, OnPreExecute and OnPostExecute in SQL tables.So whenever a task execution starts, first it will fire OnPreExecute then insert a record into to Package_Process_table then fire OnPostExecute to update the Package_Process_table.In between if an error comes then it will fire OnPreExecute, OnError and OnPostExecute.In such case, OnError i will update Package_Process_table with status as FAILED, OnPostExecute first i will check whether the status of package is STARTED or FAILED if it is FAILED then i dont update Package_Process_table on OnPostExecute.</description><pubDate>Sat, 15 May 2010 04:37:03 GMT</pubDate><dc:creator>vidyasagar.kunta</dc:creator></item><item><title>Event Handlers in SSIS(OnError &amp; OnPostExecute)</title><link>http://www.sqlservercentral.com/Forums/Topic625436-148-1.aspx</link><description>Hi, I am using a SSIS package to write the records to the flat file destination. During this process I am using Event Handlers [b]OnError[/b] and [b]Onpostexecute[/b] events. The OnError Event Produces a Failure Trigger file in my work area if any task fails.The OnPostExecute event triggers a Success trigger file when the task is completed. When an error occurs in any task, the onError event will get triggered which produces a Failure Trigger file. but again the on post execute event get triggered which even produces the success trigger file.In this case, I am not able to figure out whether it is a Success trigger or Failure Trigger. As because the OnPostExecute Event fires after the OnError Execute.Can you please help in this.</description><pubDate>Wed, 24 Dec 2008 09:07:17 GMT</pubDate><dc:creator>dhanasekar.palani</dc:creator></item></channel></rss>