Migrazione Magento 2: controllo del volume non riuscito
-
13-12-2019 - |
Domanda
Sto tentando una migrazione magenta 2 sulla mia macchina locale, soprattutto che ho dei dati reali per lavorare con man mano che appreso magento 2 (la precisione della migrazione non è importante).
Quando eseguo lo strumento di migrazione, ottengo questo errore (i):
[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
.
e termina con
[Migration\Exception]
Volume Check Failed
.
Nella tabella della sorgente eav_attribute
(abbreviato):
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
.
Sto bene escludendo questo modulo dalla migrazione se possibile / necessaria.Ho provato a guardare attraverso i vari file config.xml e map.xml per esempi di come potrebbe essere gestito, ma non poteva davvero ottenerne una presa.
Soluzione 2
Ho capito che i dati nella tabella eav_attribute
devono essere modificati.I modelli di origine di FreightQuote devono essere modificati per essere nel formato previsto.
Così Freightquote_Shipping_Model_Carrier_Source_Class
diventa freightquote_shipping/carrier_source_class
.Questo per ciascuna delle righe ha causato un errore e riavviato l'importazione.Che ha risolto l'errore.
Altri suggerimenti
Ho avuto lo stesso problema e ho chiesto su github https:// github.com / magento / data-migrazione-strumento-utensile-CE / problemi / 13 .
Puoi provare ad aggiungere le seguenti righe al tuo fornitore / magento / strumento-migrazione-strumento / ecc. / 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>
.