Hi there,
The records have been correct till 21 August, from 22nd to 27th the orders are missing while delta migration. while the success message was migration completed with 1 sales order.
https://imgur.com/a/FsCWpd7
Thank you.
13 answers
Hi there,
Please tell me know what is the version of our migration tool in your working now?
If you are using ver.3.1.9 or older versions, you could try with delta migration in step #7 with update mode by run CLI command:
php -f bin/ubdatamigration run --step=7 --mode=update;
Regards,
Mall.
Hi there
I was using version 3.1.9 with Magento 2.3.1. and below was the CLI to run delta migration as per documention.
php -f bin/ubdatamigration run --step=7 --mode=update;
Later, yester as suggested jn my previous question, was to upgrade 3.1.9 to 3.2.0, so the version now is 3.2.0 with Magneto 2.3.1
Also let me an feasible solution.
Thank you.
Hi there,
so the version now is 3.2.0 with Magneto 2.3.1
So, please try with steps below:
+ Run the following SQL in your M2 database:
UPDATE `ub_migrate_map_step_7` SET `created_time` = '2019-08-01 00:00:00', `offset` = 0 WHERE `entity_name` = 'sales_flat_order';
+ Once done, run the delta migration in step #7 with the ‘update’ mode by running this command:
php -f bin/ubdatamigration run --step=7 --mode=update;
And then check the issue you mentioned again.
Regards,
Mall.
Thank you, this worked. all the records have been migrated till 28th Aug.
but, the same issue has happened for Customer Delta migration
https://imgur.com/a/AiOol7u
The records are migrated till 21st Aug and skipped directly to 26th Aug.
Please let me a feasible solution for this?
Thank you.
Hi there,
For customers, you could try with steps below:
Run below SQL in your M2 database:
UPDATE `ub_migrate_map_step_6` SET `created_time` = '2019-08-01 00:00:00', `offset` = 0 WHERE `entity_name` = 'customer_entity';
+ Once done run delta migration in step #6:
php -f bin/ubdatamigration run --step=6 --mode=update;
+ And then, reindex the data and clean M2 cache.
Regards,
Mall.
Hi there,
UPDATE `ub_migrate_map_step_6` SET `created_time` = ‘2019-08-01 00:00:00’, `offset` = 0 WHERE `entity_name` = ‘customer_entity’;
the above command was successful, but there are 10 records which were not migrated during delta migration, that is from 23rd, 24th, and 25th of Aug.
thank you.
Hi there,
Please make sure you run delta migration in step #6 with the ‘update’ mode after you run the SQL as my suggesting.
Did you reindex the data successfully when you finished delta with the ‘update’ mode in step #6?
Besides, please check once again to make sure you had correct M1 and M2 database credentials by verifying directly the file: pub/ub-tool/protected/config/db.php.
So, please check three points above at your end first.
If you confirm all those points, the issue you mentioned is strange:
but there are 10 records which were not migrated during delta migration, that is from 23rd, 24th, and 25th of Aug.
Then, I need a closer look on that issue, please provide me information about your instance:
- URL and Admin credentials of your M2 instance
- SSH credentials of your M2 instance
- Let me know the path to your M2 folder
- And let me know phpMyadmin credentials of your M1 and M2 databases
PS. Please make sure you share your site info in a private reply, or simply switch this ticket to private mode. Then it’s safe to share your site info here. Only you and our technical team can access.
Regards,
Mall.
Hi there,
After executing the suggested query, the Delta Migration CLI command was executed and reindexing was done, even cleared the cache as suggested in the documentation.
php -f bin/ubdatamigration run --step=6 --mode=update;
Besides, please check once again to make sure you had correct M1 and M2 database credentials by verifying directly the file: pub/ub-tool/protected/config/db.php.
Database credentials of M1 and M2 are correct
Then, I need a closer look on that issue, please provide me information about your instance:
I have already shared the instance details -- https://www.ubertheme.com/question/after-migration-not-able-to-login-as-a-customer/
Solution number #4 for credentails
Thank you.
Hi there,
I checked your instance and saw you already did steps as per suggestion. After checking further into the log of our migration tool, I noticed that you got an error when running the last delta migration in step #6: http://prntscr.com/p13jmc
And I think that is the root cause of missing customers issue that you mentioned. So, you need to solve the duplicated issue first, you can try with steps below:
+ Run this SQL in your M2 database to solve the duplicated issue which happened in the table customer_address_entity as shown in the above screenshot:
Delete From customer_address_entity Where entity_id = 24215;
+ Once done, re-do steps suggested in my reply #5 in this post.
And then check again the migration log of our tool at: pub/ub-tool/protected/runtime/ub_data_migration.log
And make sure that you have finished delta with the ‘update’ mode step without any error.
Regards,
Mall.
Hi there,
After following as suggested, i am getting the below error
[Processing][delta] Step #6 migration completed with 100 Customers
………………………………………………………………………………………………………………………………………………………..PHP Error[2]: Creating default object from empty value
in file /var/www/html/pub/ub-tool/protected/controllers/Step6Controller.php at line 562
#0 /var/www/html/pub/ub-tool/protected/controllers/Step6Controller.php(425): Step6Controller->_migrateCustomerAddressEntity()
#1 /var/www/html/pub/ub-tool/protected/controllers/Step6Controller.php(170): Step6Controller->_migrateCustomers()
#2 /var/www/html/pub/ub-tool/protected/commands/RunCommand.php(68): Step6Controller->actionRun()
#3 /var/www/html/pub/ub-tool/protected/commands/RunCommand.php(30): RunCommand->_migrateData()
#4 unknown(0): RunCommand->actionIndex()
#5 /var/www/html/pub/ub-tool/yii-1.1.19/console/CConsoleCommand.php(172): ReflectionMethod->invokeArgs()
#6 /var/www/html/pub/ub-tool/yii-1.1.19/console/CConsoleCommandRunner.php(71): RunCommand->run()
#7 /var/www/html/pub/ub-tool/yii-1.1.19/console/CConsoleApplication.php(92): CConsoleCommandRunner->run()
#8 /var/www/html/pub/ub-tool/yii-1.1.19/base/CApplication.php(185): CConsoleApplication->processRequest()
#9 /var/www/html/pub/ub-tool/yii-1.1.19/yiic.php(33): CConsoleApplication->run()
#10 /var/www/html/pub/ub-tool/protected/ubdatamigration_cli.php(5): require_once()
#11 /var/www/html/bin/ubdatamigration(4): require_once()
I have flushed / restart the PHPmemcache.
Thank you.
Hi there,
PHP Error[2]: Creating default object from empty value
in file /var/www/html/pub/ub-tool/protected/controllers/Step6Controller.php at line 562
Lets run below CLI command:
php -f bin/ubdatamigration clean --step=6
And then, clean the cache of our migration tool by run command:
rm -rf /var/www/html/pub/ub-tool/protected/cache/*
or if you are enabled PHP memcache, you must refresh this cache engine too.
And then, you could continue with delta migration in step #6.
Regards,
Mall.
Thanks.
this worked.
Hi there,
Glad that it helps.
If you have any additional question, feel free to get back to us here.
Regards,
Ubertheme team