Qeasy Cloud
Get Started

Practical Tutorial: Syncing Store Master Data from LingXing ERP to Kingdee Cloud Customer Records

· 系统管理员· Integration Solutions· 18 views· 4 min read
金蝶云·星空旗舰版ERP供应链集成基础资料同步Master Data轻易云金蝶云·星空私有化

What This Strategy Solves

A retail enterprise operates across multiple platforms, accumulating a large amount of store master data (Amazon, independent sites, etc.) in LingXing ERP, while its finance and supply chain run on Kingdee Cloud · Constellation Flagship Edition. When the business needs to pull these stores into Kingdee as "customer" dimensions for accounts receivable, reconciliation, and virtual entity accounting, manual entry is slow and error-prone. We use the Qeasy data integration platform to build a store-to-customer sync strategy that automatically converts multi-platform store master data into customer archives in Kingdee.

Data Flow and Field Mapping

The source system is store master data from LingXing ERP, and the target system is the customer archive in Kingdee Cloud · Constellation Flagship Edition, with the mapping layer in Qeasy handling field conversion and code unification.

Business MeaningSource (LingXing Store)Mapping LayerTarget (Kingdee Customer)
Platform store codestore_codePass-throughCustomer code (with prefix)
Store namestore_nametrim + remove spacesCustomer name
Platform typeplatformDictionary mapping (enum → Chinese)Customer category/group
Settlement currencycurrencyDefault CNY or pass-throughDefault currency
Country/regioncountryISO country code dictionaryRegistered address country
Enable statusstatusBoolean normalizationCustomer status

To be safe, we introduce a centralized code mapping management table in the mapping layer. All "platform code → Kingdee customer code" relationships are maintained centrally, so adding a new platform only requires modifying one place.

How to Configure on Qeasy

In Qeasy, this strategy is configured according to the following key points:

  1. Data source access: Through the LingXing ERP connector in Qeasy, select the "Store" business object and pull data by incremental field (last update time) to avoid full table scans each time.
  2. Target writing: Use Kingdee Cloud · Constellation Flagship Edition's customer archive API with batch submission and per-record retry on failure. This is the most common safe approach among Qeasy customers.
  3. Field mapping: Drag and drop fields in Qeasy's mapping canvas. Dictionary-type fields (platform type, country) use lookup table mapping, while code-type fields directly use expressions to add prefixes.
  4. Null values and codes: The "country" field in LingXing stores may be empty, so we supplement with a default value in the mapping layer; when the "platform type" dictionary is extended, adding a row in the mapping table takes effect immediately. This is a typical use of Qeasy's "hot dictionary update" feature.
  5. Failure alerts: Qeasy records failure reasons for each record. At customer sites, we typically configure enterprise WeChat/email alerts so that staff no longer need to manually monitor logs.

Implementation Steps

We generally recommend a three-phase rollout:

Phase 1: Full initialization

  • Push all enabled stores from the LingXing side to Kingdee in one go as the baseline.
  • After the full task completes, both sides' IT jointly verify the record count. This serves as the responsibility demarcation point for all subsequent issues.

Phase 2: Incremental sync activation

  • After full initialization completes, enable incremental sync using LingXing's "last update time" as the cursor, running every 5–10 minutes.
  • The incremental starting point must take the maximum update time at the moment full initialization completes. Otherwise, "orphaned" data will appear—records present in the full sync but missing from the incremental sync. This is a typical pitfall.

Phase 3: Steady-state and reconciliation

  • Run a reconciliation job weekly to compare the number and code consistency of enabled stores/customers on both sides.
  • All anomalies should go through Qeasy's fault-tolerant queue, be manually reviewed, and then flow back, rather than directly modifying the source system.

Lessons Learned from Pitfalls

  1. Code conflicts: LingXing store codes are pure numbers, while Kingdee customer codes have letter/category prefixes. When mapping, be sure to add a platform prefix (e.g., starting with AMZ_). Otherwise, stores from different platforms will collide, and three months later you won't be able to reconcile them.
  2. Dictionary omission: When a new platform (e.g., newly added TikTok Shop) is integrated, if dictionary items are not supplemented in the mapping table, the customer category in the target system will be empty, causing report filtering misalignment in finance. It's recommended to add a "mapping table registration" step to the new platform onboarding process.
  3. Incremental starting point misalignment: After the full sync completes, if the maximum update time is not recorded and the current time is directly used as the incremental starting point, a batch of data that "was modified during the full sync period but has not yet been pushed to Kingdee" will be lost. The safe practice is to write the cursor into the Qeasy strategy parameters when the full sync ends.
  4. Enable/disable status out of sync: If "disabled" stores in LingXing are pushed to Kingdee as usual, they will contaminate the customer master data. We usually add a filter condition in the mapping layer: only sync stores with status=enable. Disabled stores take a separate disable channel (or a dedicated reverse strategy).
  5. Batch submission order: Kingdee's customer archive has uniqueness validation. If one record in a batch fails causing the entire batch to roll back, Qeasy will automatically retry per record, but the most common pitfall on site is not enabling the "partial success allowed" switch, leading to missed handling during busy operations.

Applicable and Non-Applicable Scenarios

Applicable: Multi-platform e-commerce with clear subject matter, where stores serve as "virtual customers" for accounts receivable or reconciliation, and both source and target systems have stable master data interfaces in private deployment environments.

Non-applicable: Scenarios where stores need to function as "internal organizations/departments" rather than customer accounting, or where the source system lacks stable master data incremental fields (can only do full table pulls). In the latter case, it is recommended to first govern the source system before discussing sync.

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

Comments