﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Integration Services / Data Warehousing  / SSIS job: failure to connect to FTP server / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Fri, 24 May 2013 19:32:52 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: SSIS job: failure to connect to FTP server</title><link>http://www.sqlservercentral.com/Forums/Topic1417059-364-1.aspx</link><description>Well, I have a solution that works.  I gave up on the FTP task.  Instead, I create a batch file on the FTP server.  I have shared out the folder where the FTP client resides (i.e., WinSCP).  The batch file gets called by an Execute Process task in the package.  The whole thing works as a job.This didn't work for me before because I had failed to share out the folder where the FTP client was.  Actually, I was trying to "pushd" into the FTP server, then run the batch file.  I kept encountering errors with the "pushd" so just gave up that strategy.The batch file resembles:"\\myFTPServer\Putty\WinSCP.exe" /script = "\\myFTPServer\temp\Myscript.sc"The script file resembles:option batch onoption confirm offopen ftp://UserName:Password@FTPServer:21put "\\SomeNetworklocation\TheFile.csv"closeMy advice to SSIS developers trying to get the FTP to work as a job is give up on the FTP task and create a batch file.</description><pubDate>Mon, 11 Feb 2013 08:52:44 GMT</pubDate><dc:creator>cafescott</dc:creator></item><item><title>RE: SSIS job: failure to connect to FTP server</title><link>http://www.sqlservercentral.com/Forums/Topic1417059-364-1.aspx</link><description>I'm trying to imagine any single chore harder in this world of IT then getting the SSIS FTP task to work when run as a job.  Why does Microsoft heap so much misery on us poor developers?  They have money for examples, they have money for tutorials.  This is extraordinarily painful!!!I have been busy trying everything I can think of to get this work.  I'm running in 32-bit mode.  I have set the user name, server name, port, passive mode and password values in a config file that I load via Package Configurations.  I've set a password on the package.  I've specified the package protection level to "EncryptSensitiveWithPassord."  I've set the MaxConcurrentExecutables to 10.  Saved to my Integration Services server.  I've tried changing the command line so that it has the "Decrypt" option.  I've added my package password after the 'Decrypt' switch, then copied the line to notepad.  From there I typed it in exactly into a command &amp;#119;indow.I get the same error every time: "Unable to connect to FTP server using 'FTP Connection Manager''.  Thanks, Microsoft!!Any morsel of help for this most laborious of tasks is appreciated.  Thanks.</description><pubDate>Thu, 07 Feb 2013 13:29:37 GMT</pubDate><dc:creator>cafescott</dc:creator></item><item><title>SSIS job: failure to connect to FTP server</title><link>http://www.sqlservercentral.com/Forums/Topic1417059-364-1.aspx</link><description>Hello,I have an SSIS package that is calling the FTP script task.  I can run the package from the package-store.  Unfortunately, when I attempt to run it as a job I get the pretty common error: "Unable to connect to FTP server using 'FTP Connection Manager'."I have been searching for solution.  This is a pretty common problem and many people have offered answers.  Unfortunately, I have not seen the solution that works for me.  Here are a few of the pages that I've looked over:http://www.sqlservercentral.com/Forums/Topic657509-148-1.aspxhttp://www.sqlservercentral.com/Forums/Topic478084-148-1.aspx#bm485701http://www.sqlservercentral.com/Forums/Topic278800-148-1.aspxThe package is reading the user name, password and server name from a table.  (Not a config file and the settings are not hard-coded.)  Prior to the FTP task, I have a script task where I execute this code:FTPConnectionManager = Dts.Connections("FTP Connection Manager")FTPConnectionManager.Properties("ServerName").SetValue(FTPConnectionManager, Dts.Variables("ServerName").Value)FTPConnectionManager.Properties("ServerPort").SetValue(FTPConnectionManager, Dts.Variables("ServerPort").Value)FTPConnectionManager.Properties("ServerUserName").SetValue(FTPConnectionManager, Dts.Variables("ServerUserName").Value)FTPConnectionManager.Properties("ServerPassword").SetValue(FTPConnectionManager, Dts.Variables("ServerPassword").Value)Both the "FTP Prep" task and the FTP task that follows it have "DelayValidation" set to true.  The package works beautifully when I right-click on the package and run it from the package store!  The job is configured to run under a proxy using my credentials.  That still doesn't enable me to get the FTP task to work.Finally, I have tried to save the package using "ServerStorage" and this did not change anything.  Also, I don't wish to apply a password to the package because it is going to be used by multiple people over time and I don't wish to have to use a password to open the package.Does anyone have any ideas?  Thanks!</description><pubDate>Thu, 07 Feb 2013 07:20:35 GMT</pubDate><dc:creator>cafescott</dc:creator></item></channel></rss>