You have received an error message indicating that we were unable to compile your feed because duplicate IDs were detected. This article explains how to quickly identify duplicates in your file.
1. If Your Feed Is a CSV File
Open a new Excel spreadsheet and import your CSV file:
- Go to the Data tab.
- Select From Text/CSV.
- Choose your CSV file and import it into Excel.
Once your data is loaded:
- Select the ID column.
- Go to the Home tab and click Conditional Formatting.
- Select Highlight Cells Rules > Duplicate Values.
- Choose a highlight color and click OK.
Excel will automatically highlight all duplicate IDs.
To make them easier to review:
- Apply a filter to the column.
- Sort or filter by color.
- Review the highlighted rows to identify duplicated IDs.
2. If Your Feed Is an XML File
First, convert your XML file into an Excel worksheet:
- Enable the Developer tab in Excel if it is not already visible.
- Go to Developer > Import.
- Select your XML file and follow the import wizard.
Once the data has been imported, follow the same steps described in the CSV File section above to highlight duplicate IDs.
Note: For very large files, Excel may reach its processing limits. In such cases, you can try the same procedure using LibreOffice Calc or extract only the ID column into a smaller spreadsheet before performing the duplicate check.
3. If Your Feed Is an Offer Feed (Uniqueness Based on id + store_code)
For offer feeds, uniqueness is not determined by the id field alone. Instead, each offer is uniquely identified by the combination of:
idstore_code
This means that the same id can legitimately appear multiple times as long as it is associated with different stores.
Step 1: Create a Combined Key
Add a new helper column to your spreadsheet.
For example:
- Column A =
id - Column B =
store_code
In a new column, enter the following formula:
=A2&"_"&B2
This creates a combined key composed of both values.
Example:
| id | store_code | Combined Key |
|---|---|---|
| 12345 | PARIS | 12345_PARIS |
| 12345 | LILLE | 12345_LILLE |
| 12345 | PARIS | 12345_PARIS |
In this example:
12345_PARISappears twice and is therefore a duplicate.12345_LILLEis not a duplicate because the store code is different.
Step 2: Highlight Duplicate Combinations
Apply conditional formatting to the Combined Key column:
- Select the entire Combined Key column.
- Go to Home > Conditional Formatting.
- Select Highlight Cells Rules > Duplicate Values.
- Choose a highlight color and click OK.
Excel will highlight all duplicated id + store_code combinations.
Step 3: Filter by Color
To quickly locate the problematic rows:
- Apply a filter to the Combined Key column.
- Sort or filter by the highlight color.
- Review the duplicated combinations.
Alternative Method: Pivot Table
For very large offer feeds, you can create a Pivot Table using the Combined Key column:
- Select your dataset.
- Go to Insert > PivotTable.
- Add the Combined Key field to both Rows and Values.
- Configure the Values field to display a Count.
Any combination with a count greater than 1 represents a duplicate offer.
Additional Notes for Large Files
Excel may reach its processing limits when working with very large feed files.
If this happens, you can:
- Try the same procedure using LibreOffice Calc, which can sometimes handle large datasets more efficiently.
- Extract only the relevant columns into a separate spreadsheet:
- the ID column for product feeds;
- the ID and store_code columns for offer feeds.
- Use your preferred AI assistant (such as Gemini, ChatGPT, Microsoft Copilot, etc.) to analyze the extracted data and identify duplicate entries.
When using an AI assistant, make sure to remove any sensitive or confidential information from your file before uploading it.