Search code examples
sqlsql-serverssis-2008

Validations within the SSIS


I currently have the following flow in an SSIS

enter image description here

My question is, is there any way to place an OLE DB, which allows me to insert information into a table called errors if Excel Source fails, in a few words, if the Excel file does not exist, I want to save 3 things in the table of errors, which would be, the date, an action and the message it produces. Is it possible to do this?


Solution

  • You can find it through Event Handler Tab in SSIS Paackage on the right of Parameters tab.

    enter image description here

    For further details, to accomplish your needs, please explore the Event Handler in SSIS, as you can see there is "OnError" right there, and there are plenty of options which occuring events that you may want to validate or make actions with, which also this including Error.

    https://learn.microsoft.com/en-us/sql/integration-services/integration-services-ssis-event-handlers?view=sql-server-2017