Qeasy Cloud
Get Started

Syncing Warehouse Master Data from JKY to Kingdee Cloud Galaxy: A Practical Strategy with Qeasy

· 钟家寿· Integration Solutions· 4 views· 4 min read
吉客云Kingdee Cloud仓库同步基础资料轻易云供应链集成

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 MeaningJKY Source FieldKingdee Cloud Galaxy Target FieldNotes
Warehouse CodewarehouseCodeFNumberUnique key, basis for idempotent write
Warehouse NamewarehouseNameFNameDirect mapping, remember to trim whitespace
Warehouse PropertywarehousePropertyFStockPropertyDefault 1 (normal warehouse), can be rewritten in Qeasy
Create Org—FCreateOrgIdRequired by target, hardcode as constant in Qeasy
Use Org—FUseOrgIdRequired by target, same as create org
Allow Negative Stock—FAllowMinusQtyTarget 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:

  1. 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 parameters pageIndex and pageSize are also filled in literally.
  2. Field Mapping Card: Drag warehouseCode and warehouseName from the source response to target FNumber and FName. Target-side constants like FCreateOrgId, FUseOrgId, FStockProperty, FAllowMinusQty are 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.
  3. 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 gmtModifiedStart to 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 uses 3,23,43 * * * * (at minutes 3, 23, 43 of every hour), and the target schedule uses 10,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

  1. Starting the schedule before the time window is fully loaded: A typical mistake is setting LAST_SYNC_TIME to 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.
  2. 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.
  3. 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 trim step in Qeasy mapping, and normalize case when necessary.
  4. Source page size too large: Setting pageSize to several hundreds or thousands can easily cause timeouts; 50 per page with retries is recommended.
  5. Target organization not filled in: FCreateOrgId and FUseOrgId are 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.

Original content. Please credit the source when reposting: https://www.qeasy.cloud/insights/solutions/strat-p2ea595-kingdee-cloud-5924-i0122-e234c2b6

Comments