문제

저는 로컬 컴퓨터에서 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-migration-tool-ce/issues/13.

Vendor/magento/data-migration-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 ~와 함께 속성
제휴하지 않습니다 magento.stackexchange
scroll top