Overview
Script task to verify for existence of remote FTP file.
Setup
The script has the following parameters:
- FtpConnection - secure FTP connection manager selection (SFTP, FTPS).
- RemoteFile - path of remote file to check.
- CheckLocal - if true, check additional remote file attributes against a local file.
- LocalFile - path of local file to compare against.
- CheckSize - if true, include verification of remote file size against local file size.
- CheckTime - if true, include verification of remote file modification time against local file modification time.
If the verification process is successful, the task result is success. Otherwise it is to set failure and you can take further appropriate actions in your SSIS workflow.
Configuration
To use this script, you would need to load it in COZYROC JavaScript Task. If you are using COZYROC SSIS+ 2.0 or later, after selecting the corresponding script type and opening the component editor, you can select the script from a dropdown list with the pre-built scripts. For COZYROC SSIS+ 1.9, you can download the JavaScript file and browse to it via the "Import JavaScript code" button.
FTP_File_Exists_Task.jsKnowledge Base
COZYROC SSIS+ Components Suite is free for testing in your development environment.
A licensed version can be deployed on-premises, on Azure-SSIS IR and on COZYROC Cloud.