Syncing Warehouse Master Data from JKY to Kingdee Cloud Galaxy: A Practical Strategy with Qeasy
What This Strategy Solves
Warehouse master data is the "foundation" in supply chain integration. If warehouse codes, names, and properties don't align between systems, all downstream processes — real-time inventory, purchase receiving, and sales shipping — will drift. In one real project we encountered: a retail enterprise used JKY as the front-end fulfillment center and Kingdee Cloud Galaxy as the back-end finance and inventory center. Warehouses were initially recorded separately in both systems, and three months later, during the financial stock-take, mismatched codes were found across nearly four digits of documents. This strategy pushes warehouse master data one-way from JKY to Kingdee Cloud Galaxy, ensuring unified coding and property management and eliminating redundant manual entry.
Data Flow and Field Mapping
The overall flow is unidirectional: JKY (source) → Qeasy middleware → Kingdee Cloud Galaxy (target). The middleware handles paginated fetching, rewrites the time window, performs code mapping and field cleansing, and then writes data in batches to the target system.
Key field mapping is roughly as follows:
| Business Meaning | JKY Source Field | Kingdee Cloud Galaxy Target Field | Notes |
|---|---|---|---|
| Warehouse Code | warehouseCode | FNumber | Unique key, basis for idempotent write |
| Warehouse Name | warehouseName | FName | Direct mapping, remember to trim whitespace |
| Warehouse Property | warehouseProperty | FStockProperty | Default 1 (normal warehouse), can be rewritten in Qeasy |
| Create Org | — | FCreateOrgId | Required by target, hardcode as constant in Qeasy |
| Use Org | — | FUseOrgId | Required by target, same as create org |
| Allow Negative Stock | — | FAllowMinusQty | Target field, set to 0 or 1 per business policy |
The source uses erp.warehouse.get (POST + pagination) for incremental fetching by gmtModifiedStart / gmtModifiedEnd; the target uses batchSave (POST + EXECUTE) for batch persistence.
How to Configure on Qeasy
In the Qeasy Data Integration Platform, the configuration approach follows a "source interface → mapping → target interface" three-stage model:
- Source Interface Card: Select the JKY adapter and bring in
erp.warehouse.get. In the parameter template, directly reference the two time window variables{{LAST_SYNC_TIME|datetime}}and{{CURRENT_TIME|datetime}}; the pagination parameterspageIndexandpageSizeare also filled in literally. - Field Mapping Card: Drag
warehouseCodeandwarehouseNamefrom the source response to targetFNumberandFName. Target-side constants likeFCreateOrgId,FUseOrgId,FStockProperty,FAllowMinusQtyare configured by writing them directly into the request body. A common practice in Qeasy is to centralize such codes and constants into an "org/property code table", so changing an organization or property later only requires editing one place. - Target Interface Card: Select the Kingdee Cloud Galaxy adapter, call
batchSave, enable idempotency (deduplicate based on FNumber), retry 3 times on failure with exponential backoff.
Implementation Steps
To make warehouse master data both "one-time baseline" and "long-term incremental" capable, we typically proceed in three steps:
- Step 1: Full baseline. Set
gmtModifiedStartto a very early time (e.g., 1970-01-01), manually trigger once, and push all warehouses to Kingdee Cloud Galaxy at once. During the baseline, observe Qeasy runtime logs to confirm there is no dirty data before entering the daily schedule. - Step 2: Enable incremental. After the baseline completes, record the current
LAST_SYNC_TIME; thereafter, each scheduled run only pulls warehouses modified "after the last sync time point" from the source. The source schedule uses3,23,43 * * * *(at minutes 3, 23, 43 of every hour), and the target schedule uses10,30,50 * * * *. Source runs first, target runs after, leaving a 7-minute processing window. - Step 3: Monitoring and reconciliation. Open the runtime dashboard in Qeasy, watch the write success rate, empty pages (indicating no changes), and exception batches; each week, randomly select 3 warehouses and verify in Kingdee Cloud Galaxy whether the FNumber is consistent.
Pitfall Review
- Starting the schedule before the time window is fully loaded: A typical mistake is setting
LAST_SYNC_TIMEto the current time before the baseline has finished running, resulting in "old warehouses" being lost. The safe approach is to switch to incremental mode only after the baseline has completed and the full success is confirmed. - Decentralized code mapping: If values like warehouse property and whether to allow negative stock are hardcoded in every target request, replacing them later requires modifying everything. A common Qeasy customer pattern is to centralize such values in a mapping table and reference only variables in the strategy.
- Ignoring whitespace and case sensitivity: Warehouse names often contain full-width spaces or English case differences, causing failures when the target does name matching after persistence. It is recommended to add a
trimstep in Qeasy mapping, and normalize case when necessary. - Source page size too large: Setting pageSize to several hundreds or thousands can easily cause timeouts; 50 per page with retries is recommended.
- Target organization not filled in:
FCreateOrgIdandFUseOrgIdare required in Kingdee Cloud Galaxy but do not exist in the source at all. In Qeasy, constants must be written and self-tested once; missing these fields will cause the entire batch to fail.
Applicable and Non-Applicable Scenarios
Applicable: Enterprises in private deployment that use JKY as the front-end fulfillment/ecommerce mid-platform and Kingdee Cloud Galaxy as the back-end ERP, with warehouse counts ranging from hundreds to thousands, requiring unified management of warehouse master data. Not applicable: Scenarios where warehouses are frequently created separately on both ends and bidirectional sync is required; as well as scenarios with extremely large warehouse counts (tens of thousands or more) and highly customized fields — these are better served by the Kingdee Cloud Galaxy master data management module rather than a single-strategy sync.