Try it

Value mapping table

Sortyra team · · 3 min read

A value mapping table (lookup list) is a list of "original value → new value" pairs. When the feed is processed, every value in the left column is replaced with the one from the right. This lets you unify different spellings from suppliers, for example "černá", "black" and "black matt" into a single "black".

What a value mapping table is

Three suppliers, three ways of writing. One writes the colour "Black", another "černá", a third "BLACK". A customer using a filter in the online shop then sees three different blacks, and a comparison site does not know they are the same thing. A value mapping table is like an interpreter's dictionary: it says that all three mean "black".

Original valueNew value
Blackblack
černáblack
BLACKblack
Dark Greengreen
khakigreen

A value that is not in the table is usually left unchanged.

What it is used for

  • Unifying parameters – colours, materials, sizes (for example "XL", "x-large", "42/44").
  • Converting supplier codes – availability "1", "2", "3" to in_stock, out_of_stock, preorder for Google.
  • Categories – a supplier's category to your own category or to the channel's category.
  • Simplifying shades – "olive", "mint" and "khaki" to a basic colour for a filter.
  • Values required by a channel – for example gender "men's" to male.

What to watch out for

  • Exact match – "Black" and "black " (with a trailing space) can be two different values to a computer.
  • New values – when a supplier starts sending a new colour, it is missing from the table and passes through unchanged. Check the table from time to time.
  • Contradictory rows – if the same original value is in the table twice with a different conversion, the result is unpredictable.
  • A pattern that is too broad – if you search by part of a text, "green" also catches "greenish blue".
  • Large tables by hand – hundreds of rows are easier to manage in a spreadsheet file and upload in one go.

How Sortyra helps

In Rules you choose the rule type Value table: you enter the field, the pairs in the form original=new (each on its own line) and the way of comparing – exact match or regular expression. Values that are not in the table stay unchanged. For common cases there are the recipes Normalise value spellings (value list) and Shades to basic colours.

Frequently asked questions

What is the difference between a value mapping table and data mapping?

Data mapping determines which supplier field corresponds to which feed field (for example "Manufacturer" → brand). A value mapping table changes values within a single field.

What happens to a value that is not in the table?

It usually stays unchanged. That is why it pays to add new values from suppliers to the table regularly.

Can a value mapping table be uploaded from a file?

Most feed tools allow it, for example as a CSV file with two columns. With hundreds of rows it is faster than entering them by hand.

Try it on your own feed