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 Excel Sheet using SSIS 1.jpg file present inside the File System Folder to 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 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. 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 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 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 Excel Sheet using 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.
Currently, we don’t have any subfolders 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.
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.
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.