Skip to content
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

How to ignore EAV attributes? #115

Closed
MagePsycho opened this issue Jul 14, 2016 · 11 comments
Closed

How to ignore EAV attributes? #115

MagePsycho opened this issue Jul 14, 2016 · 11 comments

Comments

@MagePsycho
Copy link

I didn't find any mapping file where I can ignore the cusotm eav attributes for products.
Please do suggest.

@redboxmarcins
Copy link

Ideally - delete them from source data - so you are only migrating what required

@MagePsycho
Copy link
Author

But that's not the correct way. I was thinking if ignoring attributes can be done based on mapping files just like tables and fields.

@victor-v-rad
Copy link
Collaborator

Use eav-attribute-groups.xml.dist for this

@MagePsycho
Copy link
Author

WOW that's cool.
BTW, is there's a way to know which tables has been imported so far?
My Map Step is stuck at 12%, and not sure which tables' data are being updated.

@victor-v-rad
Copy link
Collaborator

use -vvv option. It shows progress bar per table and code backtrace of an error if any

@MagePsycho
Copy link
Author

Is there a way to ignore attribute by entity_type? I want to ignore product > custom_image but not category > custom_image?

If you add custom_image attribute in eav-attribute-groups.xml, it will ignore for all, right?

@victor-v-rad
Copy link
Collaborator

Is there a way to ignore attribute by entity_type?

Not implemented yet. Internal ticket MAGETWO-56809

@victor-v-rad
Copy link
Collaborator

The issue is a duplicate of #134 follow up for it.

@victor-v-rad
Copy link
Collaborator

The bug was fixed in the recent release. Please try it out. Feel free to reopen the issue if it is still relevant.

@carloshernan007
Copy link

Hi, I try of ignore the attributes of customer for example cedula my code is

<attribute type="customer">cedula</attribute>

Document: eav_attribute_group. Fields: attribute_group_code,tab_group_code
[2017-02-27 14:32:53][ERROR]: Source fields are not mapped. Document: catalog_eav_attribute. Fields: is_required_in_admin_store,is_used_in_grid,is_visible_in_grid,is_filterable_in_grid,search_weight,additional_data

@danielruedaa
Copy link

To ignore client attributes uses the file eav-attribute-groups.xml.dist and create a copy

cp eav-attribute-groups.xml.dist eav-attribute-groups.xml

In the node ignore we placed the attributes that we want to be careful with the type of attribute that we place example

<groups xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="../groups.xsd"> <group name="ignore"> <attribute type="catalog_product">msrp_enabled</attribute> <!-- ignore attributes --> <attribute type="customer">cedula</attribute> <!-- ignore end --> </group> </groups>

If the type is the indicated ignore the one you want, otherwise it will not do anything or ignore it in another place With the edited document we go to do the migration

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants