Qeasy Cloud
Get Started

How to Reliably Sync Overseas Warehouse Master Data from LingXing ERP to Kingdee Cloud Cosmic Without API

· 高金凤· Integration Solutions· 35 views· 5 min read
金蝶云·星空旗舰版ERP仓库主数据基础资料同步奇门 API供应链集成

What This Strategy Solves (Scenario & Value)

A cross-border retail enterprise uses LingXing ERP to manage overseas warehouses and Kingdee Cloud Cosmic for finance and general ledger. The overseas warehouses have no public standard API, so operations staff used to maintain two sets of warehouse records manually: create a warehouse in LingXing, then add another one in Kingdee by hand. Over time, warehouse codes, statuses, and enablement flags diverged between the two systems. During monthly closing, physical counts did not reconcile, and it took two to three days of manual effort to investigate the differences. The goal of this strategy is to push warehouse master data one-way from LingXing into Kingdee, so that warehouse records stay consistent on both sides and lay a clean foundation for subsequent real-time inventory and cost accounting.

Data Flow & Field Mapping (Source → Middle Layer → Target)

Data flow: LingXing ERP (warehouse master data) → Qeasy Data Integration Platform (middle layer, mapping and transformation) → Kingdee Cloud Cosmic (warehouse records).

The middle layer's core responsibility is code mapping and field semantics alignment. The key field mapping table is as follows:

Business MeaningLingXing ERP (Source)Middle Layer ProcessingKingdee Cloud Cosmic (Target)
Warehouse codewarehouse_codeCentralized code mappingWarehouse code (FNumber)
Warehouse namewarehouse_nameTrim spaces, strip special charactersWarehouse name (FName)
Enable statusenable_status0/1 → Yes/NoAllowed to use
Warehouse typewarehouse_typeDictionary lookup (domestic/overseas/transit)Warehouse category
Country/regioncountry_codeISO 2-letter → Kingdee administrative regionCountry
RemarksremarkLength truncationRemarks

Code mapping should be maintained centrally inside Qeasy, not scattered across scripts. When overseas warehouses are added or removed, only one place needs to change.

How to Configure in Qeasy

In Qeasy, this strategy can be configured as a single sync strategy without splitting it into multiple steps:

  1. Source extraction: Configure LingXing ERP as the data source. Through Qeasy's connector or adapter interface, extract warehouse master data based on conditions. Since the overseas warehouse has no standard API, it usually relies on a data landing area or database view exported from the LingXing side, which Qeasy reads on a unified time window.
  2. Middle layer processing: In Qeasy, set up the field mapping table, dictionary lookup table, and code conversion rules. Enable the "centralized code mapping" mode — all warehouse codes, types, and country mappings are stored in one mapping dataset for centralized maintenance.
  3. Target writeback: Configure Kingdee Cloud Cosmic as the target system, and use the standard warehouse record write interface to write the transformed data into Kingdee.
  4. Exception handling: Set up skip or error-log behavior for typical exceptions such as "warehouse code already exists" or "name too long", to avoid one failed record blocking the entire batch.

Implementation Steps

We split the rollout of this strategy into three phases to keep the cadence steady.

Phase 1: Confirm the incremental starting point. Before the first go-live, confirm the existing warehouse record differences on both sides. If there are already several hundred historical records on each side, do not jump straight into incremental sync. First run a "historical reconciliation" inside Qeasy — pull a list of warehouse codes that already exist on both sides, manually confirm which ones to keep and which ones to retire, and produce an initial mapping table.

Phase 2: Trigger the full backfill. Once historical data is aligned, manually trigger a full-volume sync inside Qeasy to write all confirmed warehouse records into Kingdee at once. We recommend the dual-track pattern commonly used by Qeasy customers: the full-volume runs as a one-shot task, and once it finishes, the system automatically switches to incremental; the incremental task keeps running on a scheduled cadence. This avoids missing historical data while preventing repeated overwrites against the target.

Phase 3: Scheduling and runtime cadence. Overseas warehouse master data changes infrequently (often only one new or adjusted warehouse every few days), so a schedule of every 30 minutes or every hour is generally sufficient. Do not set the frequency too high to avoid stacking unnecessary requests. Configure the crontab expression directly in Qeasy and choose the "change-triggered only" mode — this is safer, because the target write interface is only called when source data actually changes, reducing pressure on Kingdee.

Lessons Learned

These are the typical pitfalls we hit on site. The key ones are listed below.

  1. Concatenating codes with strings and then being unable to change them later. An earlier colleague simply used "LingXing warehouse code + LXB" suffix as the Kingdee code. It worked short-term, but when the customer later replaced a batch of overseas warehouses and the suffix rule changed, all historical data fell out of alignment. The safer approach is to centralize code mapping in Qeasy, so a single change takes effect globally.
  2. No API for overseas warehouses and using the wrong privileged account to read the database directly. When no standard API is available, it is tempting to just use a high-privilege account to connect directly to the source database, which causes problems in subsequent permission audits. Use the dedicated data landing area or read-only view exported from the LingXing side — do not touch the main business database.
  3. Running full-volume and incremental together and producing duplicate writes. If the full-volume task and the incremental task run simultaneously without deduplication logic, the same warehouse gets written multiple times, and the target system ends up with multiple records for the same code. The safe approach is to run the full-volume only once and close it afterwards, leaving only the incremental path; meanwhile, configure "upsert by code" semantics on the target side.
  4. Inconsistent semantics for status fields. LingXing uses 0/1 for "enabled", while Kingdee uses Yes/No. Without a dictionary mapping, sending 0 directly caused the target system to interpret it as "No", which silently disabled a batch of warehouses in Kingdee.
  5. Skipping historical reconciliation and going straight into incremental. When both sides already had dozens of historical records, jumping straight into incremental caused new records to come in while old ones remained mismatched. The customer panicked at first glance, thinking the data was incomplete. Reconcile first, then full-volume, then incremental — this order cannot be skipped.

Suitable and Unsuitable Scenarios

Suitable scenarios: Cross-border retail/manufacturing enterprises whose overseas warehouse records are only maintained on the LingXing side but need to stay consistent in Kingdee; overseas warehouses have no standard API but have a reliable data export or landing area; change frequency is low (monthly to hourly).

Unsuitable scenarios: Overseas warehouse records need to be independently maintained on both sides — that is, the source and target are inherently "dual-master"; overseas warehouse data changes extremely frequently (minute-level) and requires bi-directional real-time sync; or the requirement is to sync real-time warehouse inventory rather than warehouse master data itself — the latter requires a real-time inventory sync strategy and cannot be replaced by a master data sync strategy.

Original content. Please credit the source when reposting: https://www.qeasy.cloud/insights/solutions/strat-p110c26-erp-2385-api-ok-83089eb1

Comments