Product Master Data Sync in Practice: A Single-Strategy Tutorial from Jushuitan to Kingdee Cloud
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 meaning | Jushuitan field | Kingdee Cloud field | Handling notes |
|---|---|---|---|
| Product code | sku_id | FNumber | Pass through directly; acts as the idempotency key |
| Name | name / properties_value | FName | Concatenate spec values to avoid name collisions across SKUs |
| Category | category | FMaterialGroup | Map via CASE to material group codes |
| Create/Use org | — | FCreateOrgId / FUseOrgId | Hard-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
- Incremental starting point: pick a clear historical timestamp as
LAST_SYNC_TIMEfor the first run, do a cold-start full sync to pull all existing SKUs, then only run incremental windows afterward. - Full sync trigger: Qeasy supports manual full re-runs. Schedule them during low-peak hours (such as early morning) and push
page_sizeto the maximum the API allows to shorten the first round. - Scheduling cadence: source uses
*/5 * * * *, target uses3-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. - Idempotency check:
batchSavewithidCheck=truededuplicates byFNumber, so resumptions do not create duplicate records. - 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_beginto 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_sizeabove 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
namedirectly causes the same name to appear for "Black M / White L" SKUs; appendingproperties_valueis 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
QTand following up manually is far friendlier than a retry storm. - Never leave org fields blank:
FCreateOrgIdandFUseOrgIdare 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.