Delta Migration Products not working

Your 1st question: 
I have exactly the same problem since I installed the latest version. No errors, but no new data. I did not add new categories just new products and new orders. Both are not added to the database.
 
 
Mall’s 1st reply: 
Hi there,
I have checked your instance and see a strange circumstance:
Our tool detected that your M1’s database has total 10053 products — http://i.prntscr.com/6EW1xBpSSRmz6AbED7X4Mg.png
And our tool helped to migrated total: 10054 products — http://i.prntscr.com/WzgiP9hCQBKv0Y4Q5xmITw.png
But I see there are only 9956 products in your Magento 2 back-end now — http://i.prntscr.com/17SZzX6fSc6mB1CHuRolbg.png
It seems you have deleted one product in Magento 1 and deleted a lot of products (10054 — 9956 = 98) in Magento 2 instance after the first migration with our tool?
Please let us know what changes you did make after the first migration with our tool.
Regards,
Mall.
 
Your 2nd answer: 
I might have deleted one product in Magento 1 (that was not converted to magento 2). But I did not delete any products in Magento 2.
 
 
Mall’s 2nd reply: 
Hi there,
 But I did not delete any products in Magento 2.
So that is strange on current volume of products in your instance now. Please try run delta with mode update by use CLI command:
php -f bin/ubdatamigration run --step=5 --mode=update
And tell me know how it goes then.
Regards,
Mall.
 
I had already done it with CLI command but it runs ok no errors but nothing is update. I run step 4 upto 8 all with no chages at all.

5 answers

Profile photo of Mall Staff 94660.00 $tone December 19, 2017
Public

Hi there,

I had already done it with CLI command but it runs ok no errors but nothing is update. I run step 4 upto 8 all with no chages at all.

So kindly re-provide me information about your instance in this post with a private reply:
+ Admin credentials of your M2 instance
+ SSH credentials and web root path of your M2 instance
+ phpMyadmin credentials of your M1 and M2 databases.
I will check further and reply you more later.
Regards,
Mall.
 

#1
Profile photo of jukebox-revival 1610.00 $tone December 19, 2017
Public

Hello
 
Step 4 5 and 6 are ok now.
But as soon as I start step 7 I get this error:
Processing in step #7…PHP Error[8]: Trying to get property of non-object
in file /home/jukeboxs/public_html/pub/ub-tool/protected/controllers/Step7Controller.php at line 669
#0 /home/jukeboxs/public_html/pub/ub-tool/protected/controllers/Step7Controller.php(198): Step7Controller->_migrateSalesRules()
#1 /home/jukeboxs/public_html/pub/ub-tool/protected/commands/RunCommand.php(58): Step7Controller->actionRun()
#2 /home/jukeboxs/public_html/pub/ub-tool/protected/commands/RunCommand.php(28): RunCommand->_migrateData()
#3 unknown(0): RunCommand->actionIndex()
#4 /home/jukeboxs/public_html/pub/ub-tool/yii-1.1.19/console/CConsoleCommand.php(172): ReflectionMethod->invokeArgs()
#5 /home/jukeboxs/public_html/pub/ub-tool/yii-1.1.19/console/CConsoleCommandRunner.php(71): RunCommand->run()
#6 /home/jukeboxs/public_html/pub/ub-tool/yii-1.1.19/console/CConsoleApplication.php(92): CConsoleCommandRunner->run()
#7 /home/jukeboxs/public_html/pub/ub-tool/yii-1.1.19/base/CApplication.php(185): CConsoleApplication->processRequest()
#8 /home/jukeboxs/public_html/pub/ub-tool/yii-1.1.19/yiic.php(33): CConsoleApplication->run()
#9 /home/jukeboxs/public_html/pub/ub-tool/protected/ubdatamigration_cli.php(5): require_once()
#10 /home/jukeboxs/public_html/bin/ubdatamigration(4): require_once()

#4
Profile photo of Mall Staff 94660.00 $tone December 20, 2017
Public

Hi there,

Processing in step #7…PHP Error[8]: Trying to get property of non-object
in file /home/jukeboxs/public_html/pub/ub-tool/protected/controllers/Step7Controller.php at line 669

That issue because you have deleted at least one sales rule in table salesrule after the first migration with our tool.
To solve that, you could run below SQL statement in your Magento2’s database:

DELETE FROM ub_migrate_map_step_7 WHERE entity_name = 'salesrule' AND m2_id NOT IN (Select rule_id From salesrule);
DELETE FROM ub_migrate_map_step_7 WHERE entity_name = 'salesrule_coupon' AND m2_id NOT IN (Select coupon_id From salesrule_coupon);

Once done, you must delete the cached of our tool by run CLI command: 
rm -rf pub/ub-tool/protected/runtime/cache/
And then, you could continue with data migration in the step #7 as you did.
Regards,
Mall.

#5

Please login or Register to Submit Answer

Written By

Comments