Showing results for 
Search instead for 
Did you mean: 

magento migration m1 to m2

magento migration m1 to m2

I am migrating m1( to m2 (2.2.7).

at the time of run command

bin/magento migrate:data -a vendor/magento/data-migration-tool/etc/opensource-to-opensource/

getting [PDOException]
SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '146' for key 'PRIMARY'.

please help me to resolve this error


Re: magento migration m1 to m2

It seems you are doing the migration on already customized or used Magento, try to operate on the fresh Magento, and after you complete the migration then install the customizations and plugins.


If not, then try to figure out the table from which it is causing the issue, that might help.

Thank you