Furniture imports often fail because a database treats a model code as a unique product. A catalogue can use the same code for a different module, a second lookbook view or a finish-dependent size. If the import overwrites those records, the procurement BOM no longer matches the drawing that started the inquiry.
Weiya Deco is a useful test case. Its 11-category product index contains 308 accessible detail records, 300 distinct model reference values and eight model codes repeated across views. The catalogue also separates 257 records with dimensions from 51 that require confirmation. A resilient importer needs to preserve all of those states.
Why a Base Model Code Is Not a Primary Key
Consider five patterns in the published records.
Two views can carry different geometry. SF-435 in view 011-01 is listed at L108 × W96 × H85 cm. The same model code in view 013-19 is listed at L198 × W96 × H85 cm. Keying only on SF-435 makes one view overwrite the other.
A view with dimensions pending confirmation is still a valid record. MB-082 appears in view 033-01 with dimensions pending confirmation, then in view 034-01 at L183 × W224 × H107 cm. Deleting the pending view loses evidence that the family needs project confirmation.
String normalization can merge distinct catalogue entries. MB-90 exists alongside MB-090. The latter has views 044-01 and 045-01, both listed at L250 × W258 × H105 cm. Stripping zeros without preserving the raw code changes the source identity.
One record can contain several components. CJ562 lists Ø60 × H43 cm and Ø50 × H50 cm for a nesting set. A single width field cannot represent both pieces.
Finish and unit states need their own fields. BJ-118 gives different dimensions for White and Silver. JZ-025 lists Ø58 / Ø100 / Ø130 with no unit suffix on the source page. Converting that last string directly into centimetres invents information.
Keep the Raw Record Beside the Normalized Record
Use the detail-page slug as the entry identity. Keep the model code as a grouping value, not as the sole key. The following synthetic schema shows the separation. It is an example for an import pipeline, not an official Weiya data format.
{
"entry_id": "sofas-sf-435-011-01",
"raw_model_code": "SF-435",
"view_code": "011-01",
"source_url": "https://weiyadeco.com/products/sofas-sf-435-011-01/",
"dimension_status": "explicit_with_unit",
"raw_dimension_string": "L108 cm x W96 cm x H85 cm",
"components": [
{"variant_label": "catalogue view 011-01", "length_cm": 108, "width_cm": 96, "height_cm": 85}
],
"selection_required": false
}
For JZ-025, dimension_status would be explicit_unit_unlabelled and the normalized numeric fields would remain null until the unit is confirmed. For GL-276, the status would be confirm_on_rfq. A null value is more accurate than zero because zero silently participates in clearance calculations.
Validate Before the Record Reaches a BOM
Three checks prevent most downstream errors.
First, require a unique entry_id and retain the raw model code exactly as published. A family-level report can group entries by family_key, but the purchase row must still point to one view.
Second, validate component structure. CJ562 needs two component records. BJ-118 needs a selected finish label. A record with multiple size options should not pass to purchasing until the buyer selection is attached.
Third, make unit status explicit. Values with units, values without units and pending dimensions are different states. None should be coerced into the same numeric column without a verification step.
These rules can be implemented as import tests using the published examples. The tests should assert that both SF-435 views survive, that MB-082 keeps its pending record, and that JZ-025 never acquires a unit by assumption.
Handle Source Changes Without Losing History
Catalogue records can change between imports. A detail page may gain dimensions, correct a title or move to a new view. Store the retrieval date and a snapshot of the raw fields with each import run. The current record can then be compared with the previous one instead of replacing it silently.
When a previously pending record gains a dimension, keep both states in the history. The procurement row that used the pending state should not be updated automatically if the drawing still cites the older inquiry. Instead, flag the row for review and let the team decide whether the new information affects the selection.
The same rule applies to corrected model formatting. If a source distinguishes MB-90 from MB-090, preserve the distinction even if an internal search normalizes both for convenience. Normalized search keys can be forgiving. Purchase identities cannot.
Keep a Human Review Step
Automation should surface ambiguous records, not hide them. Create a review queue for unitless dimensions, pending sizes, repeated model codes and records with multiple components. Each queue item needs the source URL and the reason it was flagged.
A reviewer can then attach the selected view, finish or component without altering the raw import. Record the decision and the date so a later import does not reopen the same question. If the source changes in a way that affects the decision, move the item back into review.
This human step is small but important. It preserves the difference between a catalogue fact and a project selection, which is the distinction the BOM needs to carry forward.
Export the Evidence With the Purchase Row
A useful BOM row carries more than model, quantity and price. It should include the exact source URL, view code, selected component or finish, room tag, dimension status and the revision of the layout that selected it.
When a designer changes the plan, compare the new source entry with the previous BOM row. If the view or selected component changed, flag the row for review instead of silently updating its dimensions. This keeps the quotation, the drawing and the import record tied to the same selection.
The catalogue remains the source for early model selection. Written project confirmation still determines the final configuration and commercial details. The importer’s job is to preserve that boundary.

Top comments (0)