Click here to monitor SSC
SQLServerCentral is supported by Redgate
Log in  ::  Register  ::  Not logged in
Home       Members    Calendar    Who's On

Add to briefcase

FTP TASK Error. Expand / Collapse
Posted Friday, May 31, 2013 12:26 PM


Group: General Forum Members
Last Login: Thursday, June 12, 2014 9:26 AM
Points: 22, Visits: 112
I am having a problem with a package I created several years ago. I am using a SQL task that generates a list of unc path names to our mugshot jpeg's. That in turn is connected to a for each loop with an FTP task that copies the files to the web server. It generally takes .5 hrs for this task to complete and it is crashing about half way through with the following.

SSIS package "FTP.dtsx" starting.
Error: 0xC001602A at FTP, Connection manager "FTP Connection Manager": An error occurred in the requested FTP operation. Detailed error description: The operation timed out
Error: 0xC002918B at FTP Task, FTP Task: Unable to send files using "FTP Connection Manager".
Warning: 0x80020918 at FTP Task, FTP Task: Operation "" failed.

I suspect there is a file missing and when the FTP Task gets to that file it errors out because it can not find it. I know the task is copying files to the web server because I have deleted some files on the web server and the task puts them back.

Like I said I did this several years ago and I am thinking there is a way to view the file names as they are being copied. Anyone have any idea how I can do this or some other way I can find the missing file.

Thanks in advance.
Post #1458834
Posted Monday, June 3, 2013 12:24 AM



Group: General Forum Members
Last Login: Yesterday @ 2:36 AM
Points: 7,933, Visits: 14,357
You could add a Script Task to the FeLC before the FTP Task and send the variable holding the file name in as a ReadOnlyVariable. In the Script Task fire an information event (see below) to send the file name to the output. Just make sure you are logging the output of the SSIS package execution to a file or table.

Dim tempBool As Boolean = false
Dts.Events.FireInformation(1, "File Name", Dts.Variables("User::FileName").Value.ToString(), "", 0, tempBool)

You could achieve the same by having the variable that holds the file names raise an event whenever its value changes and implementing an Event Handler for that event to also raise an information event so it appears in the log. Same result, you just wouldn't see the Script Task in the Control Flow, it would be tucked away in an Event Handler.

There are no special teachers of virtue, because virtue is taught by the whole community. --Plato
Post #1459091
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse