Skip to main content

Data Sync Node

Overview

The Data Sync Node synchronizes data from a source database table to a target database table within an offline development task. You can configure source and target tables, filter conditions, field mappings, update modes, and runtime parameters.

Prerequisites

Before using a Data Sync Node, configure the source and target data connections and obtain permission to use the corresponding data accounts. Regular users can select only accounts they have permission to use.

Node Configuration

Add a Data Sync Node

  1. Go to Data Development > Offline Dev and create or edit an offline development task.

  2. Drag the Data Sync node from the node list on the left onto the canvas, then select it.

  3. Click Please configure next to Data Sync to open the synchronization configuration page.

Select Tables

Under Table Selection, configure the source table, target table, and update mode.

1. Configure the source table

SettingDescription
Source Account TypeSelect the account type for the source database.
Source Data AccountSelect the source data account. Regular users can select only accounts they have permission to use.
Source TableSelect the table to synchronize.
Filter ConditionOptional. If no conditions are configured, all source data is synchronized.

To filter source data, click Edit Rule next to Filter Condition and enter the conditions. You can insert global parameters, task parameters, dynamic parameters, and time macros.

Click Preview to check the results. The system displays the first 30 rows based on the selected source table and filter conditions.

2. Configure the target table

SettingDescription
Target Account TypeSelect the account type for the target database.
Target Data AccountSelect the target data account. Regular users can select only accounts they have permission to use.
Target TableSelect an existing table to receive the synchronized data.

To create a target table, click Create Table next to Target Table. On the Execute Create Table page, enter a table name and review or edit the table creation SQL, then click Execute Create Table. Once the table is created, use it as the target table for this synchronization.

3. Select an update mode

Choose how to write data to the target table:

  • Append: Keep existing data in the target table and append the data from this synchronization.
  • Full Update: Clear existing data from the target table, then write the data from this synchronization.
  • Upsert: Match source and target rows using comparison fields. Update matching rows in the target table and append rows that do not match. For this mode, select at least one field under Comparison Fields.

4. Proceed to field mapping

Click Next to open Select Target Table.

Configure Field Mapping

The Field Mapping Table shows target fields and their corresponding source fields. Use Map by Name to match fields with the same name.

  1. Review Target Field, Target Field Type, Source Field, Source Field Type, and Mapping Status for each row.
  2. To match fields by name again, click Map by Name.
  3. For fields that were not mapped automatically, select the corresponding Source Field. Target fields are fixed; source fields can be selected, changed, or removed. Source fields that do not need to be synchronized can remain unmapped.
  4. Ensure that at least one field mapping exists, then click Next to open Advanced Config.

Configure Advanced Parameters

Under Advanced Config, configure concurrent reads and custom parameters for reading and writing data.

SettingWhen to configureDescription
Concurrent ReadEnable as neededChoose whether to read source data concurrently. When enabled, configure Parallelism and Split Mode.
ParallelismRequired when Concurrent Read is enabledSet the number of concurrent reads.
Split ModeRequired when Concurrent Read is enabledAuto Split splits data using the source table's primary key or unique key by default. For Custom Split, select a split field manually.
Split ColumnRequired only for Custom SplitSelect a field from the source table to split the data. This setting is not required for Auto Split.
Custom Parameters > Data SourceOptional, regardless of the split methodClick Add Parameter to configure custom parameters for reading data. Leave this unconfigured if no custom parameters are needed.
Custom Parameters > Data TargetOptional, regardless of the split methodClick Add Parameter to configure custom parameters for writing data. Leave this unconfigured if no custom parameters are needed.

Complete Configuration

After configuring the advanced parameters, click Finish Config. The system validates the configuration and saves the Data Sync Node.

Runtime Options

  • Run Flag
    • Disable execution to skip this node when the workflow reaches it. Use this option for temporary troubleshooting or to control which parts of a task run.
    • Normal: Run the node according to the existing scheduling strategy. This is the default.
  • Retry on Failure
    • Retry Times: The number of automatic retries after the node fails. The default is 1.
    • Retry Interval (minutes): The interval between retries. The default is 5 minutes.
  • Timeout Threshold
    • Timeout(minutes): The time limit for a single node. The node fails automatically if it exceeds this limit.

View Run Logs

After the task runs, open the workflow instance and select the Data Sync Node. View the results under Running Log at the bottom of the page.