You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An attribute with attribute code containing a dash (in my case category-extra-image)
Steps to reproduce
bin/magento migrate:data -r vendor/magento/data-migration-tool/etc/opensource-to-opensource/1.9.3.9/config.xml.dist -a
Expected result
The attribute should be migrated
Actual result
[Exception]
Notice: Undefined index: 3-category in /data/client/magento2/vendor/magento/data-migration-tool/src/Migration/Step/Eav/Data.php on line 915
Proposed solution
Limit the number of elements explode() returns to 2, causing the remainder of the attribute code to remain intact. So change line 909 to;
Preconditions
category-extra-image
)Steps to reproduce
bin/magento migrate:data -r vendor/magento/data-migration-tool/etc/opensource-to-opensource/1.9.3.9/config.xml.dist -a
Expected result
Actual result
Proposed solution
Limit the number of elements
explode()
returns to 2, causing the remainder of the attribute code to remain intact. So change line 909 to;and line 916 to;
This fixes the error and the attribute migrates correctly.
The text was updated successfully, but these errors were encountered: