-
Notifications
You must be signed in to change notification settings - Fork 82
text file reader
Icon |
|
---|---|
Use When |
Data needs read from a text file |
Samples |
Flat File to Relational Database |
Description |
The Text File Reader is used to read data from one or more text based files. The Text File Reader can read one or more files and pass the data read to downstream components. The file name(s) and path(s) of the file(s) to be read can be specified in the File Path parameter below, or can be specified in the payload of the inbound message. Text files that are read can be in any format (fixed length, comma delimited, etc.) and can be parsed by downstream processing components like the Parse Delimited and Parse Fixed components. |
Inbound Message Type |
Text Based Message |
Output Message Type |
Text Based Message |
Control Message Handling |
Input: When a control message is received and 'Run When' is 'PER UNIT OF WORK' start the processing of this component or when any message other than a control is received and 'Run When' is 'PER MESSAGE'. Output: A single control message will be forwarded to downstream components once all files have been processed through this step unless the 'Send Control Message on EOF' property is checked (see below). |
Name | Description |
---|---|
Resource |
The file based resource (either local or remote) on which the file to be read resides. |
Whether to forward failed messages and continue processing. This is the name of a linked component to forward the failed messages to. |
|
Get File Name From Message |
If selected, the path and file name to be read will be determined by the payload of the incoming message. This option is used frequently with the File Poller component. If this setting is not selected, the path and file to be read is based on the File Path property below. |
Must Exist |
Whether the file to read must exist for the flow to execute. |
File Path |
The relative path and file of the file to be read. The relative path and file are concatenated with the absolute path specified in the File based resource. |
Split On Line Feed |
Whether to send the read in text as separate messages based on carriage return, line feed or combination of carriage return and line feed or as a single message |
Records in the text file reader are defined by a line of data up to the files row delimiter (i.e. <CR> or <CR><LF>) |
|
Header Lines to Skip |
The number of header lines in the file that should be skipped and not sent to downstream components |
Send Control Message on EOF |
Whether to send a control message at EOF to downstream components for each file read |
Number of times to read file content |
Number of times this step will read the contents of each file and forward the results to downstream components |
Important
|
Specifying None on the Action on Error does NOT stop the flow from failing when a file cannot be read. It simply specifies what should be done with the file when the error condition does occur. |