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. If the table does not exist, create it using the steps below.

Create a target table

  1. In Table Selection, select Target Account Type and Target Data Account.
  2. Click Create Table next to Target Table to open Execute Create Table.
  3. Enter the table name, then click Generate SQL below the table parameters to generate the CREATE TABLE statement.
  4. Review or edit the generated SQL, then click Execute Create Table in the lower-right corner to create the table in the selected database.
  5. After creation succeeds, use the new table as 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 the field-mapping step.

Configure Field Mapping

To reach this step, open Data Development > Offline Dev, edit the task, select its Data Sync node, and click Please configure. Complete Table Selection, including the source table, target table, and update mode, then click Next.

The system generates the mapping list from the source table structure and maps source and target fields with the same name first.

  1. Review the source field, source field type, target field, target field type, and mapping status for each row.
  2. To match fields by name again, click Map by Name.
  3. For each source field that was not mapped automatically, find its row and select the corresponding target field. Source fields that do not need to be synchronized can remain unmapped.
  4. Check the field names, field types, and mapping status. 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.