Configure the Run Settings of a Replication Flow
Define settings and properties for your replication flow and individual replication objects.
Procedure
- On the Settings tab of the canvas, select the relevant load type:
-
Initial Only: Load all selected data once.
-
Initial and Delta: After the initial load, the system checks for source data changes (delta) at regular intervals and copies the changes to the target. The default value for the delta load frequency is 60 minutes but you can change it in the Run Settings. See step 5 below.
-
Delta Only: Perform replications on changed records (inserted, updated or deleted records).
While choosing this load type, you may consider:-
Not all targets and sources support this load type. If it is not supported, it will not be available in the load type selection.
-
The Delta Only load type can be useful for transactional data where the history of data is not relevant, and therefore only the newly provided data being generated should be used in the target system of the replication flow. Indeed, since the initial load is skipped, data consistency cannot be guaranteed between the source and target. As a result, there may be time gaps between the completion of the initial load and the initiation of delta capture in the delta-only task, potentially leading to missing transaction records in the delta capture log and resulting in data inconsistencies.
Example-
If data has not changed in the source when you start a replication with the Delta Only load type, then no data will be seen in the target. Hence, the target table does not capture a complete snapshot of the source table.
-
If the source table has two records with a primary key (key 1 and key 2), and after you've started the replication with the Delta Only load type the record with key1 does not contain changes in the source table. Hence, it won't be replicated to the target table, making it inconsistent.
-
-
Delta Only is a long running task similar to Initial and Delta.
For more information on supported load types and connections, see Select Source and Target Connections for Replication Flows.
-
-
- On the Settings tab of the canvas, review the Delete All Before Loading setting and change it as required. This setting is only relevant if the target structure already exists and contains data. If the target structure does not yet exist or is empty, you can ignore the Delete All Before Loading setting.
-
If Delete All Before Loading is activated for a database table, when you start the replication run, the system deletes the table content, but leaves the table structure intact and fills it with the relevant data from the source.
If not, the system inserts new data records after the existing data in the target. For data records that already exist in the target and have been changed in the source, the system updates the target records with the changed data from the source using the UPSERT mode.
-
For cloud storage provider targets, Delete All Before Loading must always be set. (If you still try to run a replication flow for an existing target without the Delete All Before Loading option, you get an error message.) When you start the replication run, the system deletes the object completely (data and structure) and re-creates it based on the source data.
-
For Apache Kafka and Confluent Kafka, when Delete All Before Loading is enabled, the target topic is re-created. This means that all existing records in that topic are deleted as well. Truncation has no effect on the schema registry.
-
- Click (Browse source settings) to review the source settings and change them as appropriate.
-
For delta loading, you can specify the number of threads to be used for parallel processing at replication object level. The default value is 1 (no parallel processing). The maximum possible value is 10. This option is only available for SLT tables, CDS views, and CDS view entities that have load type Initial and Delta or Delta Only.
-
Overwrite Source Settings at Object Level: [only relevant if the source is a cloud storage provider] By default, any settings that you have made at the replication object level are kept intact if you make a different setting at the replication flow level. To change this, enable this option.
-
Additional settings that are only relevant for a specific source type and can be made for the replication flow itself as well as for individual replication objects. For more information, see
-
- Click (Browse target settings) to review the target settings and change them as appropriate.
-
Overwrite Target Settings at Object Level: [only relevant if the target is a cloud storage provider] By default, any settings that you have made at the replication object level are kept intact if you make a different setting at the replication flow level. To change this, enable this option.
-
Additional settings that are only relevant for a specific target type and can be made for the replication flow itself as well as for individual replication objects. For more information, see
-
- Change the Run Settings if needed.
Note
Run settings can be updated when the following requirements are met:
-
The replication flow is successfully deployed. Until it is deployed, the Edit button is not accessible.
-
You must have the DW Integrator role.
To change the settings, click Edit:
-
Delta Load Run: You can define how delta-enabled objects run in a replication flow:
-
On Delta Interval (default): The replication flow runs as a long-running task and continuously checks for new delta records based on the configured interval.
-
At Scheduled Time: The replication flow processes available delta records and then completes. Use this option if you want to run the replication flow manually, on a schedule, or as part of a task chain. Schedule no more than 100 replication flows at the same schedule interval. Running a large number of flows simultaneously can exhaust available external connections and cause runtime errors.
NoteWhen the option At Scheduled Time is used, you cannot restart an initial load if:
-
An initial load has already been completed.
-
Data from the target local table has been deleted.
If you want to perform a new initial run, you must save the flow as a new replication flow and change the load type to Initial Only. Then you can deploy and schedule accordingly or run it immediately.
-
-
-
Capture Source Schema Changes: Detects compatible source schema changes and allows you to apply supported changes without restarting the replication flow. Available only for replication flows that use the SAP ABAP connection type with an SLT container and replicate to SAP Datasphere (HANA) or Local Table (File) targets. Apply 3691739
to the ABAP source system before enabling this option. For more information, see Modify Replication Flow Object Schemas and Settings To enable this option:-
Open the replication flow.
-
Select Edit Run Settings.
-
Enable Capture Source Schema Changes.
-
Save.
-
-
Source Thread Limit (1-160): You can increase or decrease the number of replication threads to be used by your replication flow to load data from the source as appropriate for your use case. In particular, the value you enter here determines how many partitions can be processed in parallel during and initial load. Possible values are integers between 1 and 160, the default is 10. When replicating data from SAP HANA, specify an even number for the maximum number of threads, ideally a multiple of 10, as this helps to improve performance. See also Replication Flow Blog Series Part 4 - Sizing
. -
Target Thread Limit (1-160) You can increase or decrease the number of replication threads to be used by your replication flow to write data to the target as appropriate for your use case. In particular, the value you enter here determines how many partitions can be processed in parallel during and initial load. Possible values are integers between 1 and 160, the default is 10. We recommend using the same value for the source and the target. When replicating data from SAP HANA, specify an even number for the maximum number of threads, ideally a multiple of 10, as this helps to improve performance.
-
Delta Load Frequency: The default value for the delta load frequency is 60 minutes. You can change it by entering an integer between 0 and 24 for hours and 0 and 59 for minutes, respectively. The maximum allowed value is 24 hours 0 minutes. If you enter 0 hours and 0 minutes, the system replicates any source changes immediately.
NoteThis setting is only relevant when Delta Load Run is set to On Delta Interval.
This setting directly impacts costs: Billing is based on the replication flow job’s duration rather than data volume. Therefore, a longer interval between runs can lower your expenses.
-
- Review the settings for the individual replication objects and change or complete them as appropriate.
To do so, select the relevant replication object. Its properties are then displayed in the side panel.
For a list of properties and further information, see Creating a Replication Flow.