Setting general connection properties
You can add a File endpoint to Qlik Replicate to use as a source. For information on how to add endpoints, see Defining and managing endpoints.
To add a File source endpoint to Qlik Replicate:
- In Tasks view, click Manage Endpoint Connections to open the Manage Endpoints Connections dialog box. Then click the New Endpoint Connection button.
- In the Name field, type a name for your endpoint. This can be any name that will help to identify the endpoint being used.
- In the Description field, type a description that helps to identify the File endpoint. This is optional.
-
Select Source as the endpoint role.
-
Select File as the endpoint Type.
Information noteWhen this endpoint is used as a duplicated source in a Log Stream Staging setup, select the Read changes from log stream staging folder check box and then select the relevant Log Stream Staging task from the drop-down list.
For information on setting up and managing Log Stream Staging tasks, see Using the Log Stream.
- Configure the settings in the General tab as described in the table below.
Option | Description |
---|---|
File Format |
- |
Field Delimiter |
The delimiter used to separate columns in the source files. The default is a comma. Example: mike,male |
Record delimiter |
The delimiter used to separate records (rows) in the source files. The default is a carriage return ( Example (Using an asterisk as the row delimiter) mike,male*sara,female |
Null value |
The character used to indicate a null value in the source files. Example (where * is the row delimiter and @ is the null value): mike,male,295678*sara,female,@ |
Quote character |
The character used at the beginning and end of a column that contains the column delimiter character. The default is the double-quote character ("). When a column that contains column delimiters is enclosed in double-quotes, the column delimiter characters are interpreted as actual data, and not as column delimiters. Example (where a comma is the column delimiter): "sunroof, power-steering" |
Escape character |
The character used to escape a string when both the string and the column containing the string are enclosed in quotation marks. Note that the string’s quotation marks will be removed unless they are escaped. Example (where " is the quote character and \ is the escape character): 1955,"old, \"rare\", Chevrolet",$1000 |
Code page |
Specify the code page of your source files if it is different from the default (65001). Information note
Windows and Linux systems use different code page conventions. The specified code page must comply with the code page convention of the source file system. |
Ignore records |
Optionally, specify which header and footer rows in the source files to ignore. Make sure that the header and footer rows to ignore do not contain actual data. Information note
The specified number will be ignored in Full Load tasks only. |
Change Processing
Information note
Changes cannot be captured from Change Files that are present during the Full Load operation. Consequently, the Change Files should be placed in their source location(s) only after Full Load completes. |
- |
Folder |
Select this option if your Change Files contain the target table names and reside in a single folder. Then specify the folder location in the designated field. You can optionally use wildcard characters to only process files that match the specified pattern. Example:
See also: Change files. |
Use Reference Files |
Select this option if you are using Reference Files to point to the location of the Change Files. Then specify one of the following:
The folder can either contain a single reference file (which is continually appended with the Change File locations) or multiple reference files. For information on when Reference Files should be used, see Reference files. |
Change File path is preceded by table name |
Select this option if each of the Change File paths in the reference files is preceded by a table name. Information note
Selecting this option will disable the Table name check box in the Header columns ordinal position section. |
Header column order |
Specify the position of each header column in your Change Files. Apart from the data columns which must be positioned after the header columns, the columns can be positioned in any order. So, for example, if your Change Files looked liked this:
Then, the column positions would be set as follows: Operations are in column: 1 Table names are in column: 2 Timestamps are in column: 3 User names are in column: 4 Start data from column: 5 For more information on the columns, see Change files. See also Changing the ordinal positions of the user name and timestamp columns. |
Start data from column: |
Specify which column to start the actual data from. Note that data columns must be positioned after header columns. See the example in the description of the Header column order field above. |
Changing the ordinal positions of the user name and timestamp columns
To change the ordinal positions of the "User name" and "Timestamp" columns, you first need to define two transformations (one for each column) that add the $AR_H_TIMESTAMP and $AR_H_USER header columns to the Change Files.
To add the columns to a single table (i.e. Change File):
- Open the Table Settings window as described in Defining transformations for a single table/view.
-
Select the Transform tab and then click Add Column.
A new row will be added to the Output table.
-
Click the button at the end of the row (in the Expression column).
This will open the Expression Builder Window.
- Select the column from the Header Columns tab and then click OK.
-
Specify a name for the column. For example, if you selected the $AR_H_TIMESTAMP header column, specify "Timestamp".
- Repeat Steps 1-5 to add the other header column.
- Click OK to close the Table Settings window.
To add the header column to all tables (i.e. Change Files):
- Open the Global Transformation Rules window as described in Starting the Global Transformation Rules wizard.
-
Click Next twice until you get to the How to transform screen.
-
Click the Browse button next to the Computation expression field.
This will open the Expression Builder Window.
- Select the column from the Header Columns tab and then click OK.
- Specify a name for the column. For example, if you selected the $AR_H_TIMESTAMP header column, specify "Timestamp".
- Click Finish.
- Repeat steps 1-6 to add the other header column.
To determine if you are connected to the endpoint you want to use or if the connection information you entered is correct, click Test Connection.
If the connection is successful a message in green is displayed. If the connection fails, an error message is displayed at the bottom of the dialog box.
To view the log entry if the connection fails, click View Log. The server log is displayed with the information for the connection failure. Note that this button is not available unless the test connection fails.