Magento 1.9.4 to Magento 2.4.2
We are migrating Magento 1.9.4 to Magento 2.4.2. I've ran the initial migration some time back and it worked. Now, about a month or so later I would like to run it again to transfer only the new products and categories added since the initial migration. I connect to the Magento 2.4.2 store via PuTTy and run the following command:
php bin/magento migrate:delta vendor/magento/data-migration-tool/etc/opensource-to-opensource/1.9.4.0/config.xml
it then comes up with the following:
In Mysql.php line 599:
SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '5-18414' for key 'CAT_PRD_LNK_ATTR_INT_PRD_LNK_ATTR_ID_LNK_ID', query was: INSERT INTO `catalog_product_link_att
ribute_int` (`value_id`,`product_link_attribute_id`,`link_id`,`value`) VALUES (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?
, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?
ON DUPLICATE KEY UPDATE `value_id` = VALUES(`value_id
`), `product_link_attribute_id` = VALUES(`product_link_attribute_id`), `link_id` = VALUES(`link_id`), `value` = VALUES(`value`)
In Mysql.php line 110:
SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '5-18414' for key 'CAT_PRD_LNK_ATTR_INT_PRD_LNK_ATTR_ID_LNK_ID', query was: INSERT INTO `catalog_product_link_att
ribute_int` (`value_id`,`product_link_attribute_id`,`link_id`,`value`) VALUES (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?
, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?,
?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?)
, (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?), (?, ?, ?, ?) ON DUPLICATE KEY UPDATE `value_id` = VALUES(`value_id
`), `product_link_attribute_id` = VALUES(`product_link_attribute_id`), `link_id` = VALUES(`link_id`), `value` = VALUES(`value`)
In Mysql.php line 91:
SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '5-18414' for key 'CAT_PRD_LNK_ATTR_INT_PRD_LNK_ATTR_ID_LNK_ID'
migrate:delta [-r|--reset] [-a|--auto] [--] <config>
We may have changed some category names on the old system. Is this what is causing the issue? What can I do to proceed? What would happen if I run the full migration instead of the delta one? (I haven't done too much work on the new system so maybe this is a way to go?)
If I try to run it from within the bin folder - I get the following Error:
In Config.php line 70:
Invalid config filename: vendor/magento/data-migration-tool/etc/opensource-to-opensource/1.9.4.0/config.xml
UPDATED: I tried to run the following command to just overwrite everything but it gives the Error below:
php bin/magento migrate:data -r -a vendor/magento/data-migration-tool/etc/opensource-to-opensource/1.9.4.0/config.xml
In Mysql.php line 182:
SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '10963-1052' for key 'CAT_PRD_ENTT_MDA_GLR_VAL_TO_ENTT_VAL_ID_ENTT_ID'
UPDATED on July 12th, 2021:
I figured out that the biggest issue might have been that I was logged into just the account I was trying to do the delta migration into as opposed to being logged into ROOT (SSH via PuTTy). When I log into root, it starts running and then gives this 1 Error:
In Mysql.php line 182:
SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '10963-1052' for key 'CAT_PRD_ENTT_MDA_GLR_VAL_TO_ENTT_VAL_ID_ENTT_ID'
Any ideas what this means and how to fix it?