free
web stats

Fill the form & Get Installation Support

We don't monkey around your business.

GET IN TOUCH WITH US NOW





Magento 2: How to resolve Item with the same ID “ID” already exists error?

When you get error like: Item (Magento\Catalog\Model\Product\Interceptor) with the same ID “<id>” already exists.

Then you can use below module to resolve above error.

1. Create new folders Magemonkey/DuplicateEntry in app/code magento folder.
2. add new file registration.php in DuplicateEntry folder and put below code.

3. add new file etc/module.xml in DuplicateEntry folder and put below code.

4. add new file etc/di.xml in DuplicateEntry folder and put below code.

5. add new file plugin/Collection.php in DuplicateEntry folder and put below code.