Normalize Merchandise Dimensions Once: Source Units Before Display

An implementable merchandise-dimension contract with exact unit factors, subject checks, repeated-import fixtures and staged catalog recovery.

Giftpack

Giftpack

• 12 min read

A company-store buyer sees a gift case listed by its supplier as 2 inches wide. The product card says 2 millimeters. Someone changes the card’s unit label to centimeters, leaving the number untouched. The card now looks more plausible, but the underlying measurement is still wrong. The repair has changed the error rather than recovered the supplier’s meaning.

A ruler, gift case and supplier card beside separate product and package tokens on a warm desk.
Keep the measured subject with its source value and unit before deriving a display.

A reliable import preserves the source value, source unit and measurement subject, converts once into a canonical length, and derives display values from that record. This guide gives catalog owners and engineers a field contract, worked decisions and fixtures for that boundary. It does not prescribe one vendor’s API or claim that converting dimensions proves product fit.

Separate an exact factor from an uncertain measurement

states that the international inch is exactly equivalent to 25.4 millimeters. The page was created April 12, 2010, updated September 19, 2025, and checked November 23, 2026. Use that exact factor when normalizing inches. An approximate reverse factor is unnecessary and can introduce avoidable differences in repeated calculations.

The factor does not tell you what the supplier measured. Two inches might describe the product’s outside width, its usable opening or a package. It might be a nominal size with a tolerance. Converting the value accurately preserves the length’s scale, but it cannot supply those missing meanings. The source record and measurement method still need confirmation.

and its , checked the same day, illustrate value-with-unit modeling. The retrieved pages identify themselves as the development version; the unitCode page shows version V30.1 dated September 16, 2026. They are vocabulary references, not evidence that a particular store importer supports those fields or unit codes.

The contract below uses plain internal unit labels for its proposed conversion boundary. If a store exports structured data, map those labels deliberately to the actual supported vocabulary. Do not assume that an internal value such as “in” is automatically the correct code for every external interface. Confirm the importer and publisher schemas with their owners before implementation.

Preserve precision honestly. An exact factor can generate several decimal places from a coarse source measurement, but it does not make the original measurement more precise. Retain the supplier’s precision and tolerance separately. The display can be rounded for readability under a documented rule while the source and canonical values remain available for comparison and correction.


Establish a field contract before editing product cards

A bare number is not a dimension. It needs a unit, an axis and a subject, plus enough provenance to find the source again. The following proposed fields can be mapped to the actual catalog schema. Their names are examples; their meanings should survive even if the vendor uses different names.

FieldRequired meaningAcceptance rule
source_value and source_unitParsed decimal and explicit controlled unitPreserve raw supplier text and source revision separately; never infer a unit from buyer locale
measurement_subjectProduct outer, usable inner or packageNo silent substitution between subjects
axis and measurement_methodWidth, height or depth and how measuredSupplier resolves ambiguous axis order and method
canonical_mmDerived millimeters from the source value and factorUse in × 25.4, cm × 10 or mm × 1; support meters only if the actual contract includes them
conversion_version and source_revisionWhich contract and supplier revision produced the resultRepeated import of the same revision produces the same canonical result
display_value and display_unitRead-time presentation derived from canonical dataFormatting never overwrites the source or canonical value

Keep a raw supplier record in addition to the parsed fields. If the source says “2 in,” retain that string or its exact source reference rather than preserving only the converted 50.8. A later reviewer can then distinguish an incorrect parse from a supplier revision. The raw record should have an identifier and version that remain stable across repeated imports.

Define supported units explicitly. A length field can reject “oz” without trying to reinterpret it. A contract supporting inches, centimeters and millimeters should reject other units until a deliberate mapping is approved. If meters are added, the factor is 1,000 millimeters per meter, but adding that option also requires input, display and fixture updates in the actual system.

Use decimal arithmetic or an adequately specified fixed-point representation. Avoid accumulating rounding at each stage. A pipeline that rounds inches, converts to centimeters, rounds again and finally converts to millimeters can drift from the original value. Convert directly from the preserved source into the canonical unit and round only at the presentation boundary.

Define missing and invalid states. Unknown is null with a reason, not zero. Ordinary product dimensions should reject nonfinite, negative and zero lengths unless a particular field explicitly permits zero under its real semantics. Blank strings, invalid text and unsupported units should produce a bounded error record. An error should not silently become a tiny product or a default dimension.


Put conversion at the import boundary

The importer should parse the source under a documented format, validate the value and unit, attach the subject and axis, then derive canonical millimeters. Store the conversion version and source revision with that result. A second run starts from the same source record, not from the prior canonical result disguised as a supplier number.

This repeated-run behavior is often called idempotence: the same source revision produces the same result without progressively changing it. The important buying consequence is straightforward. Reimporting a product should not make a two-inch case 25.4 times larger each time someone refreshes the feed. Test the behavior explicitly rather than trusting an “already converted” checkbox that lacks source lineage.

Display is a separate operation. An inch presentation divides canonical millimeters by 25.4; a centimeter presentation divides by 10. A locale preference selects how the approved information is shown. It should not choose the supplier’s source unit or rewrite the measured subject. A US buyer may want inches while a supplier provided millimeters, and both records can be correct.

Parsing also needs a source-format agreement. A string such as “1,200” could represent different numbers under different conventions. Do not infer its meaning from the viewer’s locale or strip punctuation indiscriminately. Require an explicit parser for that source format, retain the raw value and hold ambiguous records for clarification. The conversion factor cannot repair an incorrectly parsed source number.

An implementation can keep derived values in a cache if required by the actual system, but the lineage must remain recoverable. Invalidate or regenerate display caches when the source revision or formatting rule changes. Do not allow a cached display field to become the next import’s authoritative input merely because it contains a convenient numeric string.


Worked decision: two inches becomes 50.8 millimeters once

Assume the supplier confirms record A, revision three, as an outside product width of 2 inches. The source value is the decimal 2, the source unit is inches and the subject is product outer. Under conversion version one, the canonical result is 2 multiplied by 25.4, or 50.8 millimeters. Keep all of those meanings together.

For an inch display, divide 50.8 by 25.4 to show 2 inches under the chosen formatting rule. For a centimeter display, divide 50.8 by 10 to show 5.08 centimeters. Neither operation changes the source record. Switching the viewer’s display preference back to inches should recover the same displayed source scale without a new import or a supplier-data edit.

The error fixture deliberately treats 50.8 as if it were a fresh inch source. Multiplying 50.8 by 25.4 produces 1,290.32 millimeters. That is 25.4 times the correct canonical result. A test that checks only whether the output is positive would miss the corruption. A lineage fixture should compare the repeated import with the expected 50.8 and reject the mutated result.

The engineer’s action is to preserve supplier record A and revision three as immutable source evidence, derive the canonical result from that record, and run the same revision twice. Compare the canonical outputs and confirm that the second run makes no semantic change. Then change the display locale and confirm that only presentation fields change.

Acceptance requires a canonical width of 50.8 millimeters on both imports, the correct outside-width subject, the conversion version and an unchanged source record after display switching. If a previous product card said 2 millimeters, replace it from the verified lineage. Merely changing its label to centimeters repeats the opening mistake and should fail review.

This conversion still does not establish that the case holds an object two inches wide. An outside width includes walls or other construction. A usable inner measurement and the intended insertion path require separate evidence. The catalog can accurately show the case’s outer size while leaving internal fit unconfirmed; it should not silently promote one into the other.


Worked decision: mixed units and an unknown subject

Assume a supplier spreadsheet lists length 24.5 centimeters, width 180 millimeters and depth “3” with no unit. A related diagram labels the measurements as package size. The catalog owner wants dimensions for product fit. There are two separate problems: the depth unit is missing, and the subject of the measurements conflicts with the desired product field.

The arithmetic for the confirmed units is straightforward: 24.5 multiplied by 10 equals 245 millimeters, and 180 multiplied by 1 equals 180 millimeters. Those results can be retained only for the subject they actually describe. If the source currently supports package dimensions, do not release them as outside product dimensions because the numbers look reasonable for the product photograph.

Leave depth unknown with a reason, such as “unit not supplied in revision one.” Do not guess three centimeters from the nearby length row or copy millimeters from the width row. Do not fill it with zero to satisfy a numeric column. The affected workflow needs a supplier clarification, while independently verified items elsewhere in the catalog can remain actionable.

Ask the supplier to confirm both the missing unit and the measurement subject, including axis order and method. Suppose a new revision confirms product-outer length 24.5 centimeters, width 180 millimeters and depth 3 centimeters. That revision supports canonical values of 245, 180 and 30 millimeters for the product-outer record. Preserve the earlier package ambiguity as history rather than retroactively pretending it never existed.

If the supplier instead confirms that all three are package dimensions, keep them in the package subject and continue holding product-fit dimensions. A complete numeric triplet does not resolve the wrong subject. If only depth becomes confirmed, retain that progress without declaring the other semantic questions closed. The owner can release only what the actual store requirements and evidence permit.

Acceptance is a released set of fields whose subject, axis, source and unit are all explicit. For the product-outer revision, inspect the product card and exported record to confirm that 245, 180 and 30 are not mixed with stale package fields. Reimport the new revision and repeat the display tests. The resolution is a new verified source version, not an inferred default added to an old row.


Make fixtures test meaning as well as arithmetic

Use known conversions as the first test layer: 2 inches becomes 50.8 millimeters, 2.54 centimeters becomes 25.4 millimeters and 25.4 millimeters stays 25.4 millimeters. These inputs exercise three different unit routes. Add the same source revision twice and confirm identical canonical results, then change display units without mutating the stored source.

The next layer rejects bad input. Include a missing unit, blank value, NaN, Infinity, a negative length, unsupported “oz” and zero for a field requiring positive dimensions. Each should remain an explicit error or hold, not become a released zero or default. Test the actual importer’s parser because a validation rule that runs only after an accidental coercion may never see the original invalid value.

Semantic fixtures should attempt a subject mismatch. Feed a confirmed package width into a product-outer field and expect rejection or a review state under the actual contract. Do the same with an unknown axis order. A correct multiplication can otherwise pass every numeric test while publishing the wrong meaning. Retain the supplier evidence that resolves each ambiguity.

Test precision separately from display. Choose a source with a fractional value, retain its canonical result and show it under each approved display format. Confirm that the rounded display never becomes the next source value. Compare repeated switching in both directions. The invariant is the preserved source and canonical measurement, not the number of decimals visible in the product card.

Do not add artificial precision to a source tolerance. If the supplier’s measurement method supports only a nominal size, the display policy should not imply laboratory accuracy. Preserve tolerance and method fields where the actual schema supports them, or keep their reference with the specification. The conversion remains exact while the underlying product measurement retains its own limits.


Migrate a catalog in stages and retain a recovery path

Begin by inventorying the fields that currently store dimensions. Identify whether any combine numbers and units in text, whether locale settings change saved values and whether package and product dimensions share a column. Include manually verified records in the inventory so a migration does not overwrite trustworthy data with a newly inferred default.

Stage a small representative set before expanding. Include inch and metric sources, mixed-unit records, missing units, several measurement subjects and a manually corrected product. Compare the old and proposed displays with the actual supplier evidence. The goal is to explain each difference, not to make the new system reproduce known bad values merely because they were already published.

Have the catalog owner approve the mapping and release rules. An engineering conversion can be numerically correct while merchandising needs a different display precision or a clearer subject label. A product-fit field may need to remain unavailable until internal measurements are confirmed. Document that decision so a later completeness report does not automatically fill the gap with package data.

Keep a reversible source-version pointer or another recovery mechanism supported by the actual platform. Before mutation, record which records and revisions will change and how the previous approved view can be restored. Recovery should restore the prior verified data and mapping, not attempt to reverse a series of rounded displays whose original inputs have been lost.

When a supplier changes a source revision, run the same contract again. Compare the new source with the previous one and retain the reason for the change where known. A new raw number may reflect a new measurement, a corrected unit or a different product construction. Do not assume it is a formatting update and bypass the semantic review.


Review the released card and the downstream record

The final check should include what a buyer reads and what an integration receives. Confirm the unit label, axis order and measurement subject on the product card. Then inspect the exported or API record under the actual supported interface. A correct visible card does not prove that another consumer receives the same meaning, especially if an old numeric field remains in use.

Give downstream owners a documented contract rather than asking them to infer units from the storefront. If one consumer needs inches and another needs millimeters, derive both from the same preserved canonical data. Identify which field each consumer uses. Retire or clearly deprecate ambiguous legacy fields so a later integration does not accidentally restart the double-conversion problem.

A review receipt can be compact: source identifier and revision, conversion version, subject, axes, canonical values, display policy and observed released result. Attach unresolved questions to the affected item or field. That evidence is enough to reproduce a correction without copying every supplier document into every product row or claiming that all dimensions have been physically tested.

The buyer from the opening can now compare a source-confirmed two-inch outer case with a card showing two inches or 5.08 centimeters. Both displays derive from 50.8 millimeters. If the original subject is still unknown, the card stays on hold for that use. Correct units remove one source of error while leaving fit, tolerance and usable interior space to their own evidence.

Move verified dimensions into the , then use the when checking inserts and handling. These are downstream packaging workflows: an exact unit conversion does not establish usable interior space, fit or an approved shipping charge.


Confirm the specification and interface with Giftpack

describes configurable catalogs and documented operating responsibilities. Its describes specifications and product-dependent sampling. These are relevant starting points for agreeing who supplies and approves merchandise dimensions in a proposed program.

Bring the source-unit contract, measurement subjects, current field mapping and a small set of disputed records to a . Confirm the current catalog interfaces and responsibility for supplier clarification before promising automation. This article does not establish a built-in Giftpack migration feature, a particular connector schema or guaranteed fit from converted numbers.

The next useful step is one verified source record through import, repeated import and two display formats. Preserve its value, unit and subject, derive canonical millimeters once and keep formatting downstream. A corrected label should be the visible result of recovered meaning, rather than a substitute for it.

Giftpack

Giftpack

• 12 min read

About Giftpack

Giftpack is the world's leading Emotional Intelligence platform for business success, serving 1,400+ companies with AI-powered relationship automation. Our intelligent infrastructure transforms how enterprises build loyalty, retain talent, and strengthen partnerships through personalized rewards and recognition. With global reach across multiple countries and seamless integrations to CRM and HRIS systems, we automate meaningful connections that drive measurable business outcomes. From employee onboarding to client retention, Giftpack helps companies build authentic relationships while achieving exceptional recipient satisfaction.

Sign up for our newsletter

Enter your email to receive the latest news and updates from Giftpack.

By clicking the subscribe button, I accept that I'll receive emails from the Giftpack Blog, and my data will be processed in accordance with Giftpack's Privacy Policy.

Honor Every Relationship with Personalization

Try for freeBook a Call
  • SOC2 logo
  • GDPR logo
  • CCPA logo
  • Vanta SOC2 logo
  • Vanta GDPR logo
  • Comodo Secure logo
  • Comodo Secure logo

©2026 All Rights Reserved. Giftpack Inc.®