Most catalogue imports accept a row, map a size, and move on. The error appears later when a mosaic sheet is counted as a loose tile or a roof fitting is priced without a compatible main tile. A small validation layer can stop both problems before they reach a purchase order.
HM CERAMIC TILEβs archive is a good stress test because its 4,467 CP codes cover more than conventional retail products. The records include model products, named styles, patterns, components, accessories, samples, and templates. The website category downloads contain 4,455 corresponding rows, so source reconciliation is also part of the task.
The examples below use catalogue facts where cited. All code and project records are synthetic illustrations, not a production integration.
Define the record types first
Do not begin with one Product table and a generic size field. Begin with the objects the data describes.
| Record kind | Typical use |
|---|---|
| tile | Individual wall or floor piece |
| mosaic_chip | One component of a mosaic |
| mosaic_sheet | Mounted installation module |
| slab | Full large-format sheet |
| roof_main_tile | Repeating roof field piece |
| roof_fitting | Ridge, eave, hip, end, or node piece |
| accessory | Separate supporting component |
| pattern | Named or unnumbered design |
| template | Reference layout or mould |
A CP code identifies the archive record. It does not determine the record kind by itself. The kind comes from the source and review status. This separation lets a search result remain visible even when its commercial role is not yet ready for ordering.
For each dimension, store the object it describes. CP00143, model SNZ090AOM-447A-15, lists a 37 Γ 300 mm chip and a 302 Γ 314 Γ 15 mm mounted sheet. A valid record therefore carries two dimension objects.
| Dimension field | Required meaning |
|---|---|
| object | chip, mounted sheet, tile, slab, or fitting |
| unit | Measurement unit such as mm |
| length | First stated dimension |
| width | Second stated dimension |
| thickness | Optional third dimension |
| source | Brochure or page supporting the value |
The thickness belongs to the sheet in this catalogue example. It should not be copied onto the chip. The source field is as important as the number because it allows a later reviewer to distinguish a verified value from a pending interpretation.
Validate sales units independently
A dimension is not a sales unit. Keep piece, sheet, m2, and carton as separate concepts. A record may eventually be sold by one of them, but the catalogue does not always provide the conversion.
| Sales-unit field | Required meaning |
|---|---|
| type | piece, sheet, square metre, or carton |
| pack quantity | Sourced number of units in a carton |
| coverage basis | Mounted-sheet area or net material area |
| source | Supplier document supporting the conversion |
If pack quantity is missing, carton conversion stays disabled. If coverage basis is missing, area-to-sheet conversion stays disabled. This is safer than filling a default that looks plausible but has no source.
A conversion guard should require three conditions. The record must contain a mounted-sheet dimension. The project must have an approved sheet pitch. The project must have an approved edge treatment. Only then can the system begin a sheet calculation. The guard does not calculate quantity. It only confirms that the project has enough approved information to start. Layout and edge treatment belong to the project because they vary by installation.
Reject ambiguous quantity requests
When an export requests β100 m2 of CP00143,β the system should not assume that 100 m2 means 100 m2 of mounted sheets. It should return a clarification request until the sales basis is known.
| Request check | Hold condition |
|---|---|
| Carton request | Pack quantity has no source |
| Sheet request | Coverage basis is not approved |
| Area request | Mounted-sheet or net-material basis is missing |
| Any request | CP code does not resolve to one reviewed record |
These checks should return a clarification message instead of a number. The message should name the missing field and the party expected to confirm it. This example is intentionally strict. It prevents the interface from hiding an unresolved decision behind a calculated result.
Model roof fittings as separate records
The roofing directory lists V-TILE at 120 Γ 220 mm, V-TILE XL at 205 Γ 260 mm, and F4131 at 420 Γ 290 mm. These main tiles do not prove which ridge, eave, hip, end, node, or auxiliary pieces fit.
A synthetic compatibility record can make the evidence explicit.
| Compatibility field | Required meaning |
|---|---|
| fitting CP code | Separate archive identity for the fitting |
| main-tile CP code | Archive identity of the proposed parent |
| role | Ridge, left eave, right eave, hip, end, or node |
| handedness | Left, right, or not applicable |
| evidence | Drawing or compatibility document |
| status | Verified or pending |
The validator should hold a fitting when the link is missing, required handedness is absent, or evidence is still pending. A fitting is orderable only when its own record is reviewed, its compatibility link is verified, and the evidence field is present.
The handedness rule is deliberately simple for this fictional example. A real schema should make handedness mandatory only for roles where the supplier system requires it. It should also distinguish a fitting that is not applicable to the project from one whose direction has not yet been checked.
Quarantine unresolved identities
Some source rows should be importable but not orderable. W3718 appears in a cover-tile and bottom-tile image group with a shared 370 Γ 180 Γ 150 mm notation, and individual applicability remains pending. YY1224M790 appears under different names and colour samples. V-HRJKV71715 has differing grout values across source brochures.
Use a status field rather than deleting or silently correcting these records.
| Review status | Effect on ordering |
|---|---|
| model_product | Eligible for further product checks |
| named_style | Requires commercial identity confirmation |
| model_pending | Held from automatic ordering |
| dimension_pending | Held from quantity conversion |
| material_pending | Held from technical claims |
| compatibility_pending | Held from system assembly |
A record can remain visible in search while being excluded from automatic quantity and compatibility calculations. Keep the raw source value and page beside the reviewed value so that a later reviewer can reconstruct the decision. The status should describe the unresolved question, not merely label the whole record as bad.
Test the failure cases
A small test suite should cover at least these cases.
- A chip dimension never satisfies a mounted-sheet requirement.
- A missing pack quantity blocks carton conversion.
- An area request without a basis is held.
- A roof fitting without evidence is held.
- Left and right fittings are not merged.
- A duplicate supplier model does not overwrite another record.
- A pending material does not become a guessed material.
- A catalogue record without a public download row remains traceable to the master source.
These tests protect data meaning rather than just data shape. A perfectly valid JSON file can still produce the wrong order if its units and relationships are wrong.
The HM CERAMIC TILE catalogue can be used to inspect the source categories. Any integration should preserve the archiveβs verification statuses and keep project assumptions separate from catalogue facts.
Top comments (0)