Qeasy Cloud
Get Started

Product Master Data Sync in Practice: A Single-Strategy Tutorial from Jushuitan to Kingdee Cloud

· 许创贵· Integration Solutions· 43 views· 3 min read
JushuitanKingdee Cloud商品主数据Incremental Sync轻易云基础资料同步

What This Strategy Solves

Syncing product master data from an e-commerce ERP to a financial ERP looks like simple record creation, but it is the most common place to fail: mismatched codes, messy category mapping, and out-of-order inserts mean the two systems disagree within three months. We use the Qeasy data integration platform to pull SKUs incrementally from Jushuitan into Kingdee Cloud by modification time, so product data is maintained once and consumed everywhere.

Data Flow and Field Mapping

Overall flow: Jushuitan (source) → Qeasy integration platform (middleware) → Kingdee Cloud (target). The middleware handles pagination, fetching, transformation, and result writing; each business system only sees "my data changed."

Key field mapping table:

Business meaningJushuitan fieldKingdee Cloud fieldHandling notes
Product codesku_idFNumberPass through directly; acts as the idempotency key
Namename / properties_valueFNameConcatenate spec values to avoid name collisions across SKUs
CategorycategoryFMaterialGroupMap via CASE to material group codes
Create/Use org—FCreateOrgId / FUseOrgIdHard-code org IDs

How to Configure It in Qeasy

Source configuration: use the sku/query API, with page_index defaulting to 1 and page_size set to 50 (the documented upper bound). The incremental window uses modified_begin and modified_end, driven by Qeasy's built-in variables {{LAST_SYNC_TIME}} and {{CURRENT_TIME}} to maintain the time cursor automatically. A classic mistake is hard-coding timestamps, which causes gaps or duplicates.

Target configuration: call batchSave, and use _findCollection on FMATERIALID to look up existing materials by FNumber, achieving "update if exists, create if not." For FMaterialGroup, use the _function CASE branch to translate Chinese categories such as "包包/百货/女装-裤子" into target-system group codes; anything unmapped falls into QT (Other) for later manual completion.

Implementation Steps

  1. Incremental starting point: pick a clear historical timestamp as LAST_SYNC_TIME for the first run, do a cold-start full sync to pull all existing SKUs, then only run incremental windows afterward.
  2. Full sync trigger: Qeasy supports manual full re-runs. Schedule them during low-peak hours (such as early morning) and push page_size to the maximum the API allows to shorten the first round.
  3. Scheduling cadence: source uses */5 * * * *, target uses 3-59/5 * * * * to avoid both sides hitting the network in the same second and starving the connection pool. This staggered pattern is common among Qeasy customers and is reliable in practice.
  4. Idempotency check: batchSave with idCheck=true deduplicates by FNumber, so resumptions do not create duplicate records.
  5. Centralised encoding mapping: keep the CASE mapping inside Qeasy's function or lookup table. Adding a new category later means editing one place, not the strategy body.

Pitfalls and Lessons Learned

  • Do not hard-code the time window: one customer hard-coded modified_begin to a fixed date and only discovered three months later that the incremental stream had been broken and no new products had been synced. Always use variables.
  • Do not over-tune pagination: setting page_size above the API limit triggers truncation or errors; the typical mistake is writing 200 when only 50 are returned. Stay at the documented limit and verify the response count.
  • Append specs to the name: passing name directly causes the same name to appear for "Black M / White L" SKUs; appending properties_value is much safer.
  • Always have a fallback for category mapping: unmapped categories are rejected by the target system and can fail the whole batch. Defaulting them to QT and following up manually is far friendlier than a retry storm.
  • Never leave org fields blank: FCreateOrgId and FUseOrgId are required; empty values fail immediately. For multi-org customers, build separate strategies per store or business unit rather than hard-coding multiple values into one config.

When to Use and When Not

Use when: product master data must stay consistent across multiple ERPs, the source supports modification-time incremental reads, and the target supports batch save. Do not use when: product volume is huge (millions) and requires near-real-time sync, or the source has no reliable timestamp and only supports full replacement — in those cases prefer offline batch processing or an event-driven design.

Original content. Please credit the source when reposting: https://www.qeasy.cloud/insights/solutions/strat-jushuitan-kingdee-cloud-9390-v1-0-4ba31e22

Comments