FTP TASK Error.

  • 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.

  • 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.

    [font="Courier New"]Dim tempBool As Boolean = false

    Dts.Events.FireInformation(1, "File Name", Dts.Variables("User::FileName").Value.ToString(), "", 0, tempBool)

    [/font]

    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

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply