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

  • Home
  • SEARCH
  • 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 423897
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T19:13:34+00:00 2026-05-12T19:13:34+00:00

I have an SSIS Package with two steps: 1) FTP in to a server

  • 0

I have an SSIS Package with two steps:

1) FTP in to a server and download a file to the local SQL Server
2) Execute a SQL Satatement, that fires a Storeed Procedure.

Both of these steps work fine, however, I would like to log the success or failure of these steps, so in the system this is for, add a grid with the status (success or failure) of each SSIS Package that runs for that day.

To do this, I have set up an Event handler for the FTP step and added an “Execute SQL Task” to the handler. This uses the “SqlStatementSource” property within Property Expressions, and an insert statement that inserts the system::variables such as System::ErrorCode, System::ErrorDescription.

When I test the expression with the “Evaluate Expression” button, everything is fine. But when I try to test the event by using a wrong password in the FTP connection, the FTP step fails, but the event handler is not raised even though the event handler type is set to OnError.

Any ideas?

Thanks in advance!

  • 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-05-12T19:13:35+00:00Added an answer on May 12, 2026 at 7:13 pm

    What you did seems good, there shouldn’t be any problem with that.

    Make sure you add the error handler at package level i.e. the top level.

    I did the same today, in my case, I was exporting my data to a flat file on local drive
    and was using a variable for FilePath.
    I used the OnError event handler too.
    To check that its working fine or not, I changed the FilePath variable to “Z:\” (which doesnt exists on my system).

    and I got the error in OnError event handler like

    -1073450982 component “Flat File Destination” (63) failed the pre-execute phase and returned error code 0xC020200E.
    -1071636466 Cannot open the datafile “Z:\COM_10212009.txt”.

    Hope this helps.

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

Sidebar

Related Questions

I have an SSIS package that needs to be deployed to SQL Server agent.
I have a SSIS package that runs on a SQL Server 2005 instance that
I have an SSIS package that I've saved under Maintenance Plans on SQL Server
I have an SSIS package that queries data from a view using an SQL
I have simple SSIS package where I import data from flat file into SQL
Within an SSIS package I have a dataflow that extracts two coloumns from an
I have two SSIS Solutions SolutionA Contains one utilities package that handles all emails
I have an SSIS package deployed to Sql Server 2008. This package runs fine
I have an SSIS package that connects to a mysql server and attempts to
I have an SSIS package (SQL 2008) that I need to connecto to an

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.