我正在本地计算机上尝试进行 Magento 2 迁移,主要是为了在学习 Magento 2 时可以使用真实的数据(迁移的准确性并不重要)。

当我运行迁移工具时,出现以下错误:

[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

并以

[Migration\Exception]
Volume Check Failed

eav_attribute 源表(略):

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

如果可能/必要的话,我可以从迁移中排除此模块。我尝试查看各种 config.xml 和 map.xml 文件以获取如何处理此问题的示例,但无法真正掌握它。

有帮助吗?

解决方案 2

我意识到数据在 eav_attribute 需要修改表。需要将运费报价源模型更改为预期格式。

所以 Freightquote_Shipping_Model_Carrier_Source_Class 变成 freightquote_shipping/carrier_source_class. 。对导致错误的每一行执行此操作并重新启动导入。这修复了错误。

其他提示

我有同样的问题,并在github上询问 https:// github.com / magento / data-magtigration-tool-ce / securse / 13

您可以尝试将以下行添加到供应商/ magento / data-matigration-tool / etc / ce-to-ce / class-map.xml.dist文件:

<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>
.

许可以下: CC-BY-SA归因
scroll top