Qeasy Cloud
Get Started

Kingdee Cloud Material Query Sync in Practice: Bridging Material Master Data from Jushuitan to Kingdee

· 何海波· Integration Solutions· 8 views· 4 min read
JushuitanKingdee Cloud物料主数据轻易云集成Supply Chain基础资料同步

What This Strategy Solves

In one supply chain integration project for a retail company, material master data flows from Jushuitan into Kingdee Cloud. It looks simple—just pull and write—but three months later the numbers no longer match: inconsistent codes, missing characters in names, and missing rows from pagination. We used the Qeasy data integration platform to host the "Kingdee Material Query" strategy, which pulls the material master records from Kingdee into the middleware as a reconciliation baseline. Anything missed, wrong, or duplicated becomes immediately visible.

Data Flow and Field Mapping

Data flow: Jushuitan (business trigger) → Qeasy Data Integration Platform (middleware) → Kingdee Cloud (material master) → write back to middleware for reconciliation.

This strategy is essentially a "query." The source configuration describes Kingdee's query interface (executeBillQuery), while the target is a placeholder write-empty operation in the middleware that captures the returned results as a log entry.

Key FieldSource (Kingdee request)Middleware MappingBusiness Meaning
FMATERIALIDEntity primary key, stringidInternal ID of the material in Kingdee
FNumberCode, stringnumberBusiness code of the material, used for uniqueness checks
FNameName, stringnameChinese name of the material
Limit2000, stringPagination parameterMax rows per request
StartRowStarts from 0, stringPagination parameterStarting row index, increments per page

The safe approach: use the business code (FNumber) as the unique identifier across the whole chain, and keep the internal ID (FMATERIALID) only for in-system referencing—never expose it outward.

How to Configure on Qeasy

When configuring this strategy on the Qeasy data integration platform, there are three key points worth expanding:

First, request body construction. Kingdee's executeBillQuery is a POST form submission, not JSON. In Qeasy's request headers, set Content-Type to application/x-www-form-urlencoded and concatenate the fields into fieldKey=fieldValue pairs in the form body. This is the typical pattern for Kingdee Cloud query interfaces. The common pitfall is treating it as JSON, which causes the backend to throw "parameter parsing failure."

Second, pagination and rate limiting. Kingdee limits rows per single query and silently truncates anything beyond. Limit=2000 is a conservative value that leaves room for long codes and names. Qeasy's loop component can auto-increment StartRow, accumulating Limit after each page until the returned row count falls below Limit, signaling the end of the pull.

Third, the placeholder use of empty-write operations. The target-side api is "write empty operation"—this is neither a bug nor a misconfiguration. Its purpose is to land a stream of Kingdee responses in the middleware so that downstream reconciliation strategies can reference them. This "light landing" approach is common among Qeasy customers and is more decoupled than writing directly into a business table.

Implementation Steps

We recommend a four-step approach, avoiding going full-volume from the start:

  1. Confirm the incremental starting point. Sort by FNumber on the Kingdee side, take the max code or last-modified timestamp as the incremental start, and store it in Qeasy's "water-line variable." Each subsequent run picks up from this water line.
  2. Trigger a one-time full pull. Manually run a full pull in Qeasy to bring all historical material records back into the middleware as a baseline. The typical schedule is a one-shot cron like 1 1 1 1 1, which will not repeat.
  3. Set the scheduling frequency. Change the cron to 3-59/5 * * * *, running every 5 minutes (avoiding peak hours). Kingdee has QPS limits, so Qeasy's rate limiter should be set below 2 QPS to leave headroom for other business systems.
  4. Reconciliation and alerting. Configure an alert in Qeasy's monitoring dashboard for "sudden drop in returned row count"—for example, if a page normally returns 2000 rows and suddenly drops to a few dozen, the query condition has likely drifted or a field has changed on the Kingdee side.

Pitfall Retrospective

Pitfall 1: Case-sensitivity in codes. Kingdee's FNumber automatically trims on save, but if the Jushuitan side carries leading/trailing spaces, it becomes two separate materials in Kingdee. The safe approach is to add TRIM + UPPER in Qeasy's cleansing step and maintain a unified code-mapping table in the middleware. A common pattern among Qeasy customers is "centralized code mapping management"—do not scatter it across strategies.

Pitfall 2: Pagination row loss. A typical mistake is paginating by ascending FNumber: if a new material is inserted midway, the "pulled this page" row gets pushed back to the next page, creating duplicates. The safe approach is to sort by FMATERIALID (internal ID), which is auto-incremented by the database and never regresses due to inserts.

Pitfall 3: Name garbling. If the name field returned by Kingdee contains traditional characters, rare glyphs, or full-width symbols, it will be garbled when stored directly. Qeasy's charset conversion component should explicitly specify UTF-8 and enable the "replace unrecognizable characters" switch, so a single dirty record cannot block the entire page.

Pitfall 4: Kingdee cuts off the connection due to rate limiting. During the first full pull, going too fast triggered 429 errors from Kingdee and crashed the entire strategy. The safe approach is to start Qeasy's rate limiter conservatively (e.g., 1 QPS) and gradually relax it once things are stable.

Pitfall 5: Reconciliation strategy falling behind. The material query pulled successfully, but the downstream product data sync still runs on old logic, so the two sides diverge. We recommend phasing reconciliation—"header then body"—by first getting the whole table running, then refining into field-level comparisons.

Applicable and Non-Applicable Scenarios

Applicable: Cross-system material master reconciliation, periodic snapshots of Kingdee's material archive, and supply chain integration scenarios requiring incremental sync by code or internal ID. Not applicable: High-frequency real-time material change sync (Kingdee's query interface has QPS limits and is not suitable for second-level calls), or binary field sync such as material images or attachments (this strategy covers only text-based records).

Original content. Please credit the source when reposting: https://www.qeasy.cloud/insights/solutions/strat-jushuitan-kingdee-cloud-9390-n8a7aed77-31bb08d9

Comments