SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


FTP TASK Error.


FTP TASK Error.

Author
Message
William Gary Wright
William Gary Wright
SSC Rookie
SSC Rookie (26 reputation)SSC Rookie (26 reputation)SSC Rookie (26 reputation)SSC Rookie (26 reputation)SSC Rookie (26 reputation)SSC Rookie (26 reputation)SSC Rookie (26 reputation)SSC Rookie (26 reputation)

Group: General Forum Members
Points: 26 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.
Orlando Colamatteo
Orlando Colamatteo
SSCoach
SSCoach (15K reputation)SSCoach (15K reputation)SSCoach (15K reputation)SSCoach (15K reputation)SSCoach (15K reputation)SSCoach (15K reputation)SSCoach (15K reputation)SSCoach (15K reputation)

Group: General Forum Members
Points: 15025 Visits: 14396
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
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search