Open ioweb-gr opened 2 years ago
Hi @ioweb-gr. Thank you for your report. To speed up processing of this issue, make sure that you provided sufficient information.
Add a comment to assign the issue: @magento I am working on this
so in eav_entity_type there are no 19 entity id (maybe cause by a old custom plugin) so in eav_attribute you need to remove attribute with entity 19
Preconditions
Steps to reproduce
You need a Magento installation with additional entries in eav_entity_type and attributes in eav_attribute linked to a deleted eav_entity_type
In my case in the table eav_entity_type on M1 I have this dataset
Notice the missing entity_type_id = 19 on this table.
However on eav_attribute table I have these attributes existing on the missing entity_type_id
In this part
$this->mapEntityTypeIdsDestOldNew has in my case a map of entity_ids without 19 in it. So it will try to migrate the attribute to a non-existing entity_id
Basically the data migration tool is trying to migrate attributes linked to an entity_type_id that was deleted. M1 wasn't cleaning the attributes up when the entity_type was removed. So it ends up in that state and throws an error
Notice: Undefined offset: 19 in vendor/magento/data-migration-tool/src/Migration/Step/Eav/Data.php on line 452
Expected result
Migration proceeds
Actual result
Notice: Undefined offset: 19 in vendor/magento/data-migration-tool/src/Migration/Step/Eav/Data.php on line 452
Additional notes