Skip to content

magepow/magento-2-same-Id-already-exists

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Magento 2 SameIDAlreadyExists (with the same ID "X" already exists)

Sometime you can get error with in log var/log/debug.log or var/log/system.log as below:

Item (Magento\Catalog\Model\Product\Interceptor) with the same ID "X" already exists.

or

Item (Magento\Catalog\Model\Category\Interceptor) with the same ID "X" already exists.

or

Item (Magento\Customer\Model\Customer\Interceptor) with the same ID "X" already exists

The error can cause when you migration database from Magento 1 to Magento 2 or something else. The error cause exist duplicate entity_id in database. You can find and fix it with command or install SameIDAlreadyExists to ignore it. if you want to fix the issue duplicate in your database you can use extension here to detect it Url data integrity checker module for Magento 2

Install Magento 2 SameIDAlreadyExists

Latest Stable Version Total Downloads Daily Downloads

Install via composer (recommend)

Run the following commands in Magento 2 root folder:

composer require magepow/sameidalreadyexists
php bin/magento module:enable Magepow_SameIDAlreadyExists
php bin/magento cache:flush