magento / data-migration-tool

Magento Data Migration Tool
https://devdocs.magento.com/guides/v2.3/migration/bk-migration-guide.html
Open Software License 3.0
334 stars 200 forks source link

Custom product attribute groups empty when migrating from 1.9.2.2 to 2.4.3 #888

Open schnere opened 2 years ago

schnere commented 2 years ago

When migrating from Magento 1.9.2.2 to 2.4.3 the custom product attribute group mapping does not work as expected. This error causes the custom attribute groups to be empty after migration.

Preconditions

Steps to reproduce

  1. Starting with Magento 1.9.2.2 having an attribute set with custom attribute groups with attributes assigned
  2. Migrate data to Magento 2.4.3
  3. The custom attribute group has no attributes assigned

Expected result

After migration the custom product attribute group should have the same product attributes assigned as in source Magento.

Actual result

The custom product attribute groups are empty.

Additional notes

I found the problem here: https://github.com/magento/data-migration-tool/blob/ea9cc9f21d3634dd3695fd88f9c869d9535cb6a6/src/Migration/Step/Eav/Data.php#L697 If I have a group "MyCustomGroup" in Source it get's compared with "Migration_MyCustomGroup". This will never be true as the source lacks of the Prefix. As the mapping is not set here it will not be executed later.

m2-assistant[bot] commented 2 years ago

Hi @schnere. 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


schnere commented 2 years ago

@magento I am working on this

m2-assistant[bot] commented 2 years ago

Hi @schnere! :wave: Thank you for collaboration. Only members of Community Contributors Team are allowed to be assigned to the issue. Please use @magento add to contributors team command to join Contributors team.

schnere commented 2 years ago

@magento add to contributors team

m2-assistant[bot] commented 2 years ago

Hi @schnere! :wave: Thank you for joining. Please accept team invitation :point_right: here :point_left: and add your comment one more time.