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 an example.
NOTE: The SSIS FTP Task uses the FTP Connection Manger to connect with the Remote (FTP Server) Files and Folders.
The following screenshot shows you the data inside the local folder. Our task is to Copy and Remove Double Quotes in an Excel Sheet using the SSIS 1.jpg file present inside the File System Folder to the FTP Server’s Root directory.
The below screenshot shows you the data inside the FTP Server.
SSIS FTP Task Send Files
In order to send files from the local computer to the FTP Server, First Drag and drop the FTP Task into the Control Flow region and rename it as SSIS FTP Task Send Files
Double-click on it will open the FTP Task Editor to configure it. Please change the task name according to your requirements and provide a valid description.
Within the Connection section, We have one property called FTPConnection. 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 to the FTP Connection Manager article to understand the connection settings
Please click on the File Transfer tab to configure the FTP operations. The following screenshot will show you the available properties in this tab.
The FTP task in SSIS supports eight different operations on Files and Folders. In this example, we want to send the file to FTP Server. So, We are selecting the Send Files option from the Operations property
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 the LocalPath Property. If you have 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 the below screenshot.
Once you select the <New Connection..> for files and folders, File Connection Manager Editor will be opened in a new window. Using this editor, we have to configure the connection with files and folders.
From the below screenshot, you can observe that we are selecting the Remove Double Quotes in the Excel Sheet using the SSIS 1.jpg file present inside the File System Folder.
Once you select the required file, Click on the OK button.
For the time being, we declare the Remote path manually, but in real-time, we recommend using variables. Please click on the browse (…) button beside this option to open the remote directory.
We don’t have any subfolders in our FTP Server, so we select the root directory / as the location. Next, we are setting the OverwriteDetination property to true. It means the SSIS FTP Task will overwrite the existing files (if any) in the FTP Server.
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 the FTP Server or Not.
We successfully Copied the Remove Double Quotes in the Excel Sheet using the SSIS 1.jpg file present inside the File System Folder to the FTP Server’s Root directory.