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 receive multiple files with example. Please refer SSIS FTP Task Receive Files to understand the configuration settings involved in receiving single file from FTP Server to local file system.
Below screenshot shows you the data inside the FTP Server. Our task is to Copy all the file (.txt, .xls, .jpg) present inside the Root directory to File System Folder inside E Drive.
Following screenshot shows you the data inside the local folder.
SSIS FTP Task Receive Multiple Files
In order to receive files from FTP Server to local computer, First Drag and drop the FTP Task into the Control Flow region and rename it as SSIS FTP Task Receive Multiple 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 the valid description.
Within the Connection section, We have one properties 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 so, Please refer SSIS FTP Connection Manager article to understand the connection settings
Please click on the File Transfer tab to configure the FTP operations. Following screenshot will show you the available properties in this tab.
The SSIS FTP task supports eight different operations on Files and Folders. In this example we want to receive multiple file from FTP Server. So, We are selecting the Receive Files option from the Operations property
If you want to manually select single file, Please click on the browse (…) button besides this option to open the remote directory. In this example, we want to send all files (irrespective of extensions) from FTP server to local file system. So we are using Wildcard.
TIP: If you want to send only text files then use: /*.txt
For the time being we are declaring the Local path manually but in real-time, we recommend using 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.
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 the existing folder. To do so, Please click on the Browse button to select the Existing Folder from the file system.
From the below screenshot you can observe that, We selected the FILE SYSTEM TASK – COPY FILES Folder as the local folder path. Click Ok button to select it.
OverwriteDetination: This property has two options: True and False. If we set this property to true then SSIS FTP Task will overwrite the existing files (if any) in the Destination path.
Click Ok to finish configuring the SSIS FTP task receive multiple files package. Let’s run and see whether we successfully Copied the files from the FTP Server to local the File System or Not.
Well, We successfully Copied all files from the FTP Server to the File System Task – Copy files Folder.
Thank You for Visiting Our Blog.