I am migrating m1(1.9.3.6) 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/1.9.3.6/config.xml
getting [PDOException]
SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '146' for key 'PRIMARY'.
please help me to resolve this error
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