FTPGet - FTP(Get)

The FTP(Get) component gets files from the specified FTP server.

Stream Information

InputFormatAll
Number of Inputs1
Description

The input stream is not used. Stream formats are not selectable.

OutputFormatXML,CSV,FixedLength,Text,HTML,Binary,MIME
Description

Set the output stream according to the type of file to be retrieved.

Output Stream Variables

NameData TypeDescription
FilePathStringThe file's name.
FileDateDateTimeThe file's last modified date.
FileSizeIntegerThe file's size.

Component Properties

NameData TypeMappingDescription
UseConnectionboolean- Specifies if the Connection property is used to specify the FTP server information.
true [true] - Uses Connection specified connnection.
false [false] - Uses the information under ConnectionInfo.
Connectionconnection- If UseConnection=true, specifies the FTP connection to use. The connections are defined in the Connection Pane of Flow Designer or the Flow Service Management Console.
ConnectionInfogroup- The FTP server connection property settings' place holder displayed when UseConnection is set to false.
ProtocolchoiceIn & Out Specifies if the FTP server is SFTP server or not.
If UseConnection=false, this is used.
ftp - FTP
sftp - SFTP
ServernamestringIn & Out Specifies the hostname of the FTP server.
If UseConnection=false, this is used.
PortintIn & Out Specifies the listening port of the FTP server.
If UseConnection=false, this is used.
PassiveModebooleanIn & Out Specifies whether or not to use passive mode.
This is not used if the protocol is SFTP.
If UseConnection=false, this is used.
true [true] - Passive mode
false [false] - Active mode
FilenameEncodingchoiceIn & Out Specifies the encoding of file name of transferred files. If the file name doesn't include multibyte characters, any encoding can be used.
This is not used if the protocol is SFTP.
If UseConnection=false, this is used.
TimeoutintIn & Out Specifies the timeout value, in seconds. This component times out after specified time passed since the communication was done at the end.
If UseConnection=false, this is used.
UsernamestringIn & Out Specifies the username.
If UseConnection=false, this is used.
PasswordpasswordIn & Out Specifies the password.
If UseConnection=false, this is used.
FilePathstringIn & Out The relative directory path of the file(s) to retrieve. Absoute path cannot be used. This path can contain the '*' and '?' wildcards. '*' matches zero or more characters, '?' matches one character.
FileDateGetboolean- Specifies if the last modified date is set to the stream variable FileDate.
If the last modified date is not required, please set false so that it could be faster.
true [true] - Sets the last modified time of the file.
false [false] - Sets the current local time of GMT.
TransferModechoiceIn & Out The FTP transfer mode to use when retrieving the file(s).
Ascii - ASCII mode. Converts the line feed code.
Binary - BINARY mode.
FileEncodingchoiceIn & Out Specifies the encoding of transferred files. If OutputStream=CSV/Text/HTML, specifies the character encoding used to encode the file content. If the files don't include multibyte characters, any encoding can be used.
LoopProcessloopProcess- Specifies if it outputs files as an individual stream or as a single stream when if the FilePath includes wildcards and the multiple files matches.
true [true] - Each matching file is returned in its own output stream.
false [false] - All matching files are returned in a single output stream.
Processing when commitchoice- Specifies if files are deleted on the server when the transaction is committed.
Delete File(s) [true] - Deletes it
Do Nothing [false] - Don't delete it

Loop

If LoopProcess=true, an output stream is created for each matching file. If LoopProcess=false, otherwise, a single output stream is created.

Transaction

CommitIf Processing when commit=Delete File(s), files are deleted on the server.
RollbackDo nothing.

Exceptions

TypeParameterStream for error handling flowError
Code
Description
FileNotFoundException None This component's input stream - Cannot find the FilePath defined file.
Exception None This component's input stream - The specified Connection could not be found.
- The FTP server could not be contacted.
- The FTP server returned an error.

Cancel of the flow

When flow is canceled, the flow usually aborts after the execution of that component is ends. However, the execution of this component is forced to be ended, then it aborts.

Limitation

LIST command result's is supported Windows and Unix file list style. the other format may error.