ubertheme / magento2_data_migration

The #1 Tool to automatically migrate all core data to Magento 2
https://www.ubertheme.com/magento-extensions-2-x/magento-2-data-migration-pro?utm_source=github&utm_medium=repo&utm_campaign=magento_migration_ce
MIT License
45 stars 39 forks source link

Issue on Shipping Method lenght #14

Closed quienti closed 8 years ago

quienti commented 8 years ago

Hello, i want to migrate my magento 1.9 to magento 2.0 but at step 7 i got an error captureshi

Is it possible to fix this error?

On my old magento is used Owebia-Shipping to manage shipping

Edit: i cut all my string to 32 but i don't understand why magento 2 doesn't accept more. Because in the database field is set in 'varchar(255)'

Thank you

quienti commented 8 years ago

I got an another error message at the end of the seventh step.

capturextoo

quynhvv commented 8 years ago

@quienti : I have detected the root of issues as you said, that because Magento 2 have some changed of max length in some fields: shipping_method, store_name and 'shipping_method' ... I have tuning to handle this and committed to this repository. To solve the issue, let's update below files to your working:

https://github.com/ubertheme/magento2_data_migration/blob/master/protected/controllers/MigrateController.php

https://github.com/ubertheme/magento2_data_migration/blob/master/protected/data/step7_reset.sql

https://github.com/ubertheme/magento2_data_migration/blob/master/protected/models/db/mage2/Mage2SalesOrderPaymentPeer.php

https://github.com/ubertheme/magento2_data_migration/blob/master/protected/models/db/mage2/Mage2SalesOrderPeer.php

https://github.com/ubertheme/magento2_data_migration/blob/master/protected/models/db/mage2/Mage2SalesQuoteAddressPeer.php

and make reset the step 7 after your changing.

and re-start data migration on this step.

Regards, quynhvv

quienti commented 8 years ago

Ok, thanks, I wiil try again

quienti commented 8 years ago

Now all order are imported but it is impossible to enter in order, an exception appears

execpt

http://pastebin.com/n5G4uHhM

certain order works and i think it is one that had a field name too large (>32 chars) before, while those who field was < 32 chars doesn't work now

quynhvv commented 8 years ago

@quienti:

i think it is one that had a field name too large (>32 chars) before, while those who field was < 32 chars doesn't work now

=> The issue as screenshot doesn't related to field name as you think. Did you make write permission for folders, files as Magento required: http://devdocs.magento.com/guides/v2.0/install-gde/install/file-system-perms.html

Did you clean the Magento 2 cache? and delete some needed files:

find var/* -type f -or -type d | grep -v 'session' | xargs rm -rf && \ rm -rf pub/static/*

At the end, did you try reset all steps and re-start migration on latest source of this tool?

Regards, quynhvv

quienti commented 8 years ago

Yes, I have clean the Magento 2 cache and I tried 3 times all migration with your last master today

quynhvv commented 8 years ago

@channel: I would like to announcement that, we have just released one Magento 2 modules for this at:

https://github.com/ubertheme/module-ubdatamigration

Regards, quynhvv