Magento – Magento 2: Ignore EAV tables during migration

magento2magento2-migration-toolmigration

I am setting up a migration from 1.8.1.0 to 2.2.9. All product related data has been manually set up in the new store so I would like to ignore anything product related including all the eav tables.

The map.xml already contains entries like these (by default):

<ignore>
    <document>eav_attribute</document>
</ignore>
<ignore>
    <document>eav_attribute_group</document>
</ignore>
<ignore>
    <document>eav_attribute_set</document>
</ignore>
<ignore>
    <document>eav_entity_attribute</document>
</ignore>
<ignore>
    <document>eav_entity_type</document>
</ignore>

But after migration all my newly created custom eav attributes' options are gone. For clarification: these attributes only exist in the new magento 2 database.

Basically all I need is customer and order data to be migrated. That's why I put in these sections into my config.xml:

<steps mode="data">
    <step title="Customer Attributes Step">
        <integrity>Migration\Step\Customer\Integrity</integrity>
        <data>Migration\Step\Customer\Data</data>
        <volume>Migration\Step\Customer\Volume</volume>
    </step>
    <step title="Map Step">
        <integrity>Migration\Step\Map\Integrity</integrity>
        <data>Migration\Step\Map\Data</data>
        <volume>Migration\Step\Map\Volume</volume>
    </step>
    <step title="OrderGrids Step">
        <integrity>Migration\Step\OrderGrids\Integrity</integrity>
        <data>Migration\Step\OrderGrids\Data</data>
        <volume>Migration\Step\OrderGrids\Volume</volume>
    </step>
    <step title="SalesIncrement Step">
        <integrity>Migration\Step\SalesIncrement\Integrity</integrity>
        <data>Migration\Step\SalesIncrement\Data</data>
        <volume>Migration\Step\SalesIncrement\Volume</volume>
    </step>
</steps>

What am I missing?

Thank you

Best Answer

It is not possible to transfer only selected data from Magento Data migration tool. Magento data migration tool simply transfers data from table to table. It is built in this way to support data integrity and delta data transfer. Try to follow these steps to achieve the same.

  1. Install fresh Magento2.0 without sample data.
  2. Use data migration tool to transfer data.
  3. Now delete the product from this Magento.
  4. Export products from your Magento in which you have updated catalog
  5. Import your product data into this installation.

Note: If you want to use delta transfer then do not remove and add a new catalog before delta transfer.