-
Notifications
You must be signed in to change notification settings - Fork 199
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EAV Step migrates ignored attribute references #159
Comments
Thank you for reporting this issue. |
The bug was fixed in the recent release. Please try it out. Feel free to reopen the issue if it is still relevant. |
Is there a fix if you have already migrated your live site to say 2.0.7 and now when trying to upgrade and this error pops up? Or is there a clear and clean method to clean up the DB? I have not been able to update to any version beyond 2.0.7 without experiencing this error. Everything works like a fine in 2.0.7 tho. |
@jarhody You could use something dirty/hacky like this to clean up all records for any unwanted attributes that cause the error:
You'll need to supply an array of attribute codes with their entity type id. Be careful with it though - you don't want to remove anything that shouldn't be removed |
Hi,
When migrating data with a bunch of attributes ignored in the
eav-attribute-groups.xml
file, it correctly ignores these attributes and does not migrate them... As in: they don't end up in theeav_attribute
table. However, all the references to these attributes (like in thecatalog_category_entity_int
table) are migrated.For example:
I have an attribute in my source database:
m_show_in_layered_navigation
. I have added this attribute to myeav-attribute-groups.xml
file by adding the following inside of the<group name="ignored">
node:After migration, when I try to open
Products > Categories
in the admin panel, I get the following exception:The attribute with ID
404
in my source database is them_show_in_layered_navigation
attribute. As the error tells us: it does not exist in our destination database. When I use phpMyAdmin to search my destination database for the string "404" in all tables within the column "attribute_id", I get 36 results within thecatalog_category_entity_int
,catalog_eav_attribute
andeav_entity_attribute
tables.I have tried this on both Magento 2.1 and 2.1.1 (with the corresponding data-migration-tool versions), but I get the same result on both versions. I have seen it happen with both category attributes and product attributes.
The expected behaviour for me is that it should completely ignore all attributes and any reference to it whenever it is specified to be ignored in the
eav-attribute-groups.xml
file.The text was updated successfully, but these errors were encountered: