SSIS FTP Task Send Files

The SSIS FTP Task is used to perform different kinds of operations on Files and Folders (or Directories). In this article we will show you the steps involved in configuring the SSIS FTP task send files with example.

NOTE: The SSIS FTP Task uses the FTP Connection Manger to connect with the Remote (FTP Server) Files and Folders.

Following screenshot shows you the data inside the local folder. Our task is to Copy Remove Double Quotes in Excel Sheet using SSIS 1.jpg file present inside the File System Folder to FTP Server’s Root directory.

SSIS FTP TASK SEND FILES 0

Below screenshot shows you the data inside the FTP Server.

SSIS FTP Task Send Files 2

SSIS FTP Task Send Files

In order to send files from local computer to FTP Server, First Drag and drop the FTP Task into the Control Flow region and rename it as SSIS FTP Task Send Files

SSIS FTP TASK SEND FILES 1

Double click on it will open the FTP Task Editor to configure it. Please change the task name according to your requirements and provide the valid description.

SSIS FTP TASK SEND FILES 3

Within the Connection section, We have one property called FTPConnection. By clicking on the drop down arrow will show you the already created FTP Connections (If any) or please click on the <New Connection..> option to create one. In this example, We are using the already created Connection. Please refer SSIS FTP Connection Manager article to understand the connection settings

SSIS FTP Task Send Files 9

Please click on the File Transfer tab to configure the FTP operations. Following screenshot will show you the available properties in this tab.

SSIS FTP Task Send Files 10

The FTP task in SSIS supports eight different operation on Files and Folders. In this example we want to send file to FTP Server so, We are selecting the Send Files option from the Operations property

SSIS FTP Task Send Files 11

For the time being we are declaring the Local path manually but in real-time, we recommend variables. If we set the IsLocalPathVariable to False, we have to configure the Source Connection using LocalPath Property. If you already created the File Connection Manager you can simply select it from the drop down list otherwise, You have to create by selecting <New Connection..>. as shown in below screenshot.

SSIS FTP Task Send Files 12

Once you selected the <New Connection..> for files and folders, File Connection Manager Editor will be opened in new window. Using this editor we have to configure the connection with files and folders.

SSIS FTP Task Send Files 13

From the below screenshot you can observe that, we are selecting the Remove Double Quotes in Excel Sheet using SSIS 1.jpg file present inside the File System Folder

SSIS FTP TASK SEND FILES 4

Once you selected the required file, Click on the OK button.

For the time being we are declaring the Remote path manually but in real-time, we recommend using variables. Please click on the browse (…) button besides this option to open the remote directory.

SSIS FTP TASK SEND FILES 5

Currently we don’t have any sub folders in our FTP Server so, we are selecting the root directory / as the location. Next we are setting the OverwriteDetination property to true. It means SSIS FTP Task will overwrite the existing files (if any) in the FTP Server.

SSIS FTP TASK SEND FILES 6

Click Ok to finish configuring the SSIS FTP task send files package. Let’s run and see whether we successfully Copied the JPEG file from the local File System to FTP Server or Not.

SSIS FTP TASK SEND FILES 7

Well, We successfully Copied the Remove Double Quotes in Excel Sheet using SSIS 1.jpg file present inside the File System Folder to FTP Server’s Root directory..

SSIS FTP TASK SEND FILES 8