Product master data cleansing: duplicates, GTINs, variants
Product master data cleansing in the ERP: how to handle duplicates, repeated GTINs and variants, with a decision table, an example and a checklist.
Product master data cleansing is the cleanup of the product records that already exist in your ERP (enterprise resource planning system): finding the same product under two codes, fixing barcodes that are repeated or missing, organizing colors and sizes, and separating the sales description from the technical description. The result is a product master where each product appears once, with the right barcode, and where purchasing, sales and tax teams read the same thing.
This article is about product records in the ERP of manufacturers, distributors and retailers (SAP, TOTVS, Senior and others), with examples from companies operating in Brazil. It is not about web store catalogs.
The scene repeats itself in many companies. A new color of a thermal bottle arrives and someone in sales creates a new code, because they do not know there is already a color range for that item. Months later, inventory shows two codes with the same barcode, the customer order goes out with a marketing description on the invoice, and nobody knows which of the two records is the right one.
None of these errors comes from bad intent. They come from records with no rule and no owner. Cleansing fixes what is already there; standardization keeps it from coming back.
What is product master data cleansing?
It is the work of reviewing, item by item, the products already in the system and deciding what stays, what gets corrected, what gets merged and what gets blocked. The technical name for much of this work is deduplication (finding and merging repeated records), and the end goal is often called the golden record: one trusted record per product, used by every system.
Product cleansing is one part of master data cleansing as a whole, which also covers materials and services. What weighs more for products is the GTIN, variants, sales channels and the commercial description. If you are unsure what separates a material, a product and an article, see differences between material, product and article.
During cleansing, check the attributes that feed tax and purchasing. In Brazil these include the NCM classification (Mercosur Common Nomenclature, a Brazilian and Mercosur code for goods), the NBS (Brazilian Nomenclature of Services, used when the item is a service) and the CEST (a Brazilian code used in tax substitution), plus the UNSPSC (an international classification of products and services). Which code applies is a decision for the tax team; cleansing only makes sure the field is filled, consistent across identical items and owned by someone. Descriptions follow a material descriptive standard (PDM) and, for services, a service descriptive standard (PDS).
How do you find duplicate products when the barcode repeats?
The GTIN (Global Trade Item Number, the number encoded in the barcode) is the best starting point, because it was designed to be unique. GS1 Brasil states that the GTIN is assigned through GS1 and guarantees a unique, exclusive number for each item. So when the same GTIN shows up under two internal codes, something is wrong: either it is the same product registered twice, or one of the codes received another item's GTIN.
Still, the GTIN and the internal ERP code are different things. The GS1 GTIN Management Standard (Portuguese edition) says that a new GTIN does not automatically mean a new listing of that item, and treats GTIN allocation and listing as two entirely independent decisions. That is why I look at both sides:
- Same GTIN on different codes: strong sign of a duplicate or a swapped GTIN.
- One code with more than one GTIN: it may be a different pack level (unit and case) or a new version of the product. Investigate before deleting anything.
- Product with no GTIN: it does not prove a duplicate, but it removes the best comparison signal. Then you rely on description, brand, manufacturer part number, dimensions and purchase history.
The general deduplication method (normalize text, extract attributes, separate strong and weak signals, sort pairs into certain, probable and review) is in how to identify duplicate materials. Here I stick to what is specific to products.
A recommendation of mine, not a standard: a GTIN that appears under two codes should be investigated with the brand owner, and the GTIN of a discontinued product should not be reused for another item in your master data. If you are unsure about the rule for a specific case, confirm with GS1.
Variant or new product: when does a color or size need its own code?
A variant is the same product in different versions: color, size, flavor, voltage. The most common error is registering each variant as a standalone product, with no link between them. The second is the opposite: a single code for items the customer needs to tell apart, with the color written in the order notes.
GS1 offers a useful test for whether a change deserves its own identification. According to its guiding principles (Portuguese edition), at least one of three core principles must apply to justify a GTIN change:
- the consumer or trading partner needs to distinguish the new version from the previous one;
- there is a regulatory requirement or liability toward the consumer or trading partner;
- there is a substantial impact on the supply chain.
The standard also says that a product that is new to the market must be assigned a new GTIN, and that a change in any dimension or in gross weight greater than 20% requires a new GTIN. Local regulations take precedence over the GS1 standard.
In the product master, this becomes a simple question: does the customer choose between the versions? If so, each version needs its own identification, linked to a parent product. If not, it is probably the same item and should stay under one code.
Sales description or technical description: which one goes in the record?
Both, in separate fields. The technical description is short, follows a rule (type, material, size, color, volume) and is the one used on the invoice, in inventory and in internal search. The sales description is the channel text, with benefits and commercial language.
When both share the same field, someone loses. Either the invoice shows "the perfect bottle for your everyday life!", or the storefront shows "BOTTLE THERM BL 500". The attribute model by category and the completeness required per channel are covered in product data standardization.
Decision table for product master data cleansing
| Situation in the data | What to do | Who decides | Watch out |
|---|---|---|---|
| Same GTIN on two codes | Confirm whether it is the same item; merge or fix the wrong GTIN | Master data, with the brand owner | Do not delete the code; block it with a reference |
| One product with two GTINs | Check if it is pack level, version or error | Master data and logistics | Case and unit may have different GTINs |
| Missing GTIN | Request it from the manufacturer or brand owner | Purchasing or sales | Never make up a number |
| Variant registered as a standalone product | Create a parent product and link the variants | Sales and master data | Keep codes that already have history |
| Range mixing different items | Split into variants with their own codes | Sales | Old history stays mixed; document it |
| Marketing description on the invoice | Separate technical and sales descriptions | Master data and tax | Sales text goes in its own field |
| Discontinued product still active | Block for purchasing and sales | Sales | Check stock and open orders |
| Different NCM across variants of one product | Send to the tax team for review | Tax | Do not assume the NCM from the variant; tax confirms |
Which code survives when two products are the same?
The surviving code is the one that is easiest to keep alive. For products, I look in this order:
- the code with the correct GTIN, confirmed with the brand owner;
- the code with the most sales history;
- the code used in sales channels, contracts and price lists.
The other codes are not deleted. They are blocked for purchasing and sales, get a reference to the survivor and are removed from channels. Stock balances and open orders are handled before blocking. How to transfer balances and keep the cross-reference is explained in duplicate materials: how to identify them.
Who decides what stays in product cleansing?
Cleansing without an owner stalls for lack of decisions. From my project experience, the split that works gives each question its owner:
- Sales or e-commerce: whether the variant exists for the customer, which sales description to use, what is discontinued.
- Tax: NCM, CEST and other tax fields.
- Logistics: packaging, dimensions, weight and case GTIN.
- Master data: description rules, merging, blocking and the final word on the record.
Master data runs the process. The people who know the business approve each type of decision.
Hypothetical example: a thermal bottle line before and after
Hypothetical example, created to illustrate the method. It does not describe a real company.
A fictional distributor sells a stainless steel thermal bottle in 3 colors (black, white and blue) and 2 sizes (500 ml and 1 L). That is 6 versions the customer chooses from. The system had 6 codes, but not the right 6 versions.
Before:
| Code | ERP description | GTIN | Issue |
|---|---|---|---|
| 10021 | THERMAL BOTTLE BLACK 500ML | GTIN A | None on its own |
| 10388 | Premium Black Thermal Bottle 500 ml, perfect for every day! | GTIN A | Same item as 10021, marketing description |
| 10022 | THERMAL BOTTLE WHITE 500ML | GTIN B | None on its own |
| 10023 | THERMAL BOTTLE 1L | GTIN C | Sells black and white; color in order notes |
| 10457 | BOTTLE THERM BLUE 500 | no GTIN | Description off standard |
| 10458 | BOTTLE THERM BLUE 1 LITER | no GTIN | Description off standard |
After:
- One parent product: stainless thermal bottle, with the 6 variants linked to it.
- 10021 stays as black 500 ml (correct GTIN and most sales history). 10388 is blocked with a reference to 10021.
- The manufacturer confirms GTIN C belongs to black 1 L. 10023 becomes black 1 L only, and a new code is created for white 1 L, with the GTIN provided by the manufacturer. The old history of 10023 is documented as mixed.
- 10457 and 10458 receive the GTINs provided by the manufacturer and a standard description.
- Each variant has a short technical description (e.g. THERMAL BOTTLE STAINLESS 500 ML BLACK) and a sales description in a separate field.
- The tax team reviews the NCM of the 6 variants and records the review.
Result in the example: from 6 codes with 1 duplicate, 1 code mixing two colors and 2 items without GTIN, to 1 parent product with 6 active variants, each with its own GTIN, and 1 code blocked with a reference.
Product master data cleansing checklist
- [ ] I extracted active products with code, description, GTIN, NCM, CEST, unit, packaging and status.
- [ ] I listed GTINs that appear under more than one code.
- [ ] I listed codes with more than one GTIN and separated pack levels from versions.
- [ ] I listed products without a GTIN and requested the number from the manufacturer or brand owner.
- [ ] I identified standalone variants and built the parent product for each line.
- [ ] I separated technical and sales descriptions into different fields.
- [ ] I applied the description rule (PDM for materials and products, PDS for services).
- [ ] I reviewed NCM, CEST and, for services, NBS with the tax team.
- [ ] I checked the UNSPSC classification, where the company uses it.
- [ ] I chose the survivor for each duplicate (correct GTIN, sales history, channels and price lists).
- [ ] I handled stock and open orders before blocking.
- [ ] I blocked old codes with a reference, without deleting them.
- [ ] I blocked discontinued products for purchasing and sales.
- [ ] I recorded who approved each decision.
Where to start
- Pick one product family with high sales and many complaints. Do not start with the whole database.
- Run the three GTIN lists: repeated, multiple and missing.
- Define the owners (sales, tax, logistics, master data) before the first decision.
- Build your company's decision table from the one above.
- Cleanse the chosen family, measure before and after, and only then move to the next one.
- Put the rule into the product creation process so the problem does not come back. The free standardization spreadsheet (download after sign-up) helps you build the description rule.
Frequently asked questions
What is product master data cleansing?
It is the review of the products already in the ERP to remove duplicates, fix GTINs, organize variants and separate the technical description from the sales description. The result is one trusted record per product, used by purchasing, sales, logistics and tax.
How do you find duplicate products in the product master?
Start with the GTIN: the same barcode under two internal codes is the strongest clue. Then compare normalized description, brand, manufacturer part number and dimensions, and sort pairs into certain, probable and review, as explained in how to identify duplicate materials.
Where can I find a tool to help standardize product records?
The 4MDG platform delivers PIM (product information management) functions inside an MDM (master data management) solution, with deduplication, golden record and workflow with approval levels, SLA and return with reason. To start at no cost, there is the free standardization spreadsheet (download after sign-up); platform details are on the PIM for product master data page.
Do I need a new GTIN for each color or size?
Under GS1 rules, a GTIN change is justified when at least one of three principles applies: the consumer or partner needs to distinguish the version, there is a regulatory requirement or liability involved, or there is a substantial impact on the supply chain. If the customer chooses between colors or sizes, the first principle usually applies; for your specific case, confirm with GS1.
What is the difference between cleansing and standardizing product data?
Cleansing fixes the data that already exists: duplicates, GTINs, variants, descriptions and obsolete items. Standardization defines the rule for new records (attributes by category, required fields, description), and it is what keeps the problem from returning after cleansing.
How 4MDG can help
4MDG carries out master data cleansing for materials, products and services item by item: description standardized by rule, attributes by family, unit of measure, packaging, NCM and UNSPSC, translation and deduplication. It applies to materials, MRO (maintenance, repair and operations items), resale products and service catalogs. In the assessment, within a few days you see the duplicates, inconsistencies and risks hidden in your data, with no commitment.
To keep the product master clean afterwards, the platform delivers PIM functions inside an MDM, described on the PIM and product data management page:
- validated GTIN, GLN (GS1 location number) and packaging hierarchy, with preparation for the CNP (Cadastro Nacional de Produtos, the national product registry) of GS1 Brasil;
- completeness by channel: an item is only published when it meets what that channel requires;
- deduplication and golden record: the same product for every system, not a copy per channel;
- workflow with approval levels, SLA (agreed turnaround time) and return with reason, plus an audit trail for every field.
Want to know where to start in your company? Take the MDM readiness test, a free 3-minute assessment, or talk to a specialist. If your data lives in TOTVS Protheus, see also product master data cleansing in TOTVS Protheus.
Sources
- GS1 Brasil. GTIN: identificação de produtos (in Portuguese). https://www.gs1br.org/gtin-identificacao-de-produtos. Accessed on December 1, 2026.
- GS1. GTIN Management Standard: new product (Portuguese edition). https://www.gs1.org/1/gtinrules/pt/new-product. Accessed on December 1, 2026.
- GS1. GTIN Management Standard: guiding principles (Portuguese edition). https://www.gs1.org/1/gtinrules/pt/guiding-principles. Accessed on December 1, 2026.
- GS1. GTIN Management Standard: change in dimensions or gross weight (Portuguese edition). https://www.gs1.org/1/gtinrules/pt/rule/265/alteracao-de-dimensoes-ou-de-peso-bruto. Accessed on December 1, 2026.
- GS1. GTIN Management Standard: best practices (Portuguese edition). https://www.gs1.org/1/gtinrules/pt/best_practices. Accessed on December 1, 2026.