Question

I'm attempting a Magento 2 Migration on my local machine, mostly so that I have real data to work with as I learn Magento 2 (accuracy of the migration is not important).

When I run the migration tool, I get this error(s):

[ERROR]: Incorrect value: Freightquote_Shipping_Model_Carrier_Source_Class in: eav_attribute.source_model for attribute_code=freightquote_class
[ERROR]: Incorrect value: Freightquote_Shipping_Model_Carrier_Source_Packaging in: eav_attribute.source_model for attribute_code=freightquote_packaging
[ERROR]: Incorrect value: Freightquote_Shipping_Model_Carrier_Source_Commodity in: eav_attribute.source_model for attribute_code=freightquote_commodity
[ERROR]: Incorrect value: Freightquote_Shipping_Model_Carrier_Source_Content in: eav_attribute.source_model for attribute_code=freightquote_content

and ending with

[Migration\Exception]
Volume Check Failed

In the the eav_attribute source table (abbreviated):

attribute_code           | backend_type | frontend_input | source_model
-----------------------------------------------------------------------------------------------------------------
freightquote_class       | varchar      | select         | Freightquote_Shipping_Model_Carrier_Source_Class
freightquote_packaging   | varchar      | select         | Freightquote_Shipping_Model_Carrier_Source_Packaging
freightquote_commodity   | varchar      | select         | Freightquote_Shipping_Model_Carrier_Source_Commodity
freightquote_content     | varchar      | select         | Freightquote_Shipping_Model_Carrier_Source_Content

I'm fine excluding this module from the migration if possible/necessary. I tried looking through the various config.xml and map.xml files for examples of how this might be handled, but couldn't really get a grasp on it.

Was it helpful?

Solution 2

I realized that the data in the eav_attribute table needed to be modified. The freightquote source models needed to be changed to be in the expected format.

So Freightquote_Shipping_Model_Carrier_Source_Class becomes freightquote_shipping/carrier_source_class. Did this for each of the rows causing an error and restarted the import. That fixed the error.

OTHER TIPS

I had the same issue and asked on github https://github.com/magento/data-migration-tool-ce/issues/13.

You can try adding the following lines to your vendor/magento/data-migration-tool/etc/ce-to-ce/class-map.xml.dist file :

<rename>
    <from>freightquote_shipping/carrier_source_class</from>
    <to />
</rename>
<rename>
    <from>freightquote_shipping/carrier_source_packaging</from>
    <to />
</rename>
<name>
    <from>freightquote_shipping/carrier_source_commodity</from>
    <to />
</rename>
<rename>
    <from>freightquote_shipping/carrier_source_content</from>
    <to />
</rename>
Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top