Delta migration step 5 issue

Hello Team, 

I am working on delta migration of products. I am facing issue of 

[Processing][delta] Step #5 migration completed with 2 Product Super Attributes;
PHP Error[2]: Creating default object from empty value
in file /srv/public_html/pub/ub-tool/protected/controllers/Step5Controller.php at line 1736
#0 /srv/public_html/pub/ub-tool/protected/controllers/Step5Controller.php(279): Step5Controller->_migrateCatalogProductBundleOptions()
#1 /srv/public_html/pub/ub-tool/protected/commands/RunCommand.php(74): Step5Controller->actionRun()
#2 /srv/public_html/pub/ub-tool/protected/commands/RunCommand.php(33): RunCommand->_migrateData()
#3 unknown(0): RunCommand->actionIndex()
#4 /srv/public_html/pub/ub-tool/yii-1.1.19/console/CConsoleCommand.php(172): ReflectionMethod->invokeArgs()
#5 /srv/public_html/pub/ub-tool/yii-1.1.19/console/CConsoleCommandRunner.php(71): RunCommand->run()
#6 /srv/public_html/pub/ub-tool/yii-1.1.19/console/CConsoleApplication.php(92): CConsoleCommandRunner->run()
#7 /srv/public_html/pub/ub-tool/yii-1.1.19/base/CApplication.php(185): CConsoleApplication->processRequest()
#8 /srv/public_html/pub/ub-tool/yii-1.1.19/yiic.php(33): CConsoleApplication->run()
#9 /srv/public_html/pub/ub-tool/protected/ubdatamigration_cli.php(5): require_once()
#10 /srv/public_html/bin/ubdatamigration(4): require_once()

check this screen : https://prnt.sc/sg9rrf 
 
Please check and let us know as soon as possible . 
 
Thanks !!

4 answers

Profile photo of Mall Staff 184060.00 $tone May 14, 2020
Public

Hi there,

[Processing][delta] Step #5 migration completed with 2 Product Super Attributes;
PHP Error[2]: Creating default object from empty value
in file /srv/public_html/pub/ub-tool/protected/controllers/Step5Controller.php at line 1736
#0 /srv/public_html/pub/ub-tool/protected/controllers/Step5Controller.php(279): Step5Controller->_migrateCatalogProductBundleOptions()

That issue occurred because you did delete some product’s options in the backend after the first migration.
Please try with the following command:
php -f bin/ubdatamigration clean --step=5;

And then, you can continue with the data migration in step #5 by running this command:
php -f bin/ubdatamigration run --step=5 --mode=update;

Regards,
Mall.

#1
Profile photo of Mall Staff 184060.00 $tone May 15, 2020
Public

Hi there,

I did found these records : https://prnt.sc/sgumcu , Is this the root of issue ? 

No, that is normal log data records of our module only.

I have applied php -f bin/ubdatamigration clean --step=5; command but still facing same error . 

So, please try with these steps:

+ Run the following SQL queries in your M2 database:

DELETE FROM ub_migrate_map_step_5_product_option WHERE entity_name = 'catalog_product_bundle_option' AND m2_id NOT IN (Select option_id From catalog_product_bundle_option);
DELETE FROM ub_migrate_map_step_5_product_option WHERE entity_name = 'catalog_product_bundle_selection' AND m2_id NOT IN (Select selection_id From catalog_product_bundle_selection);
DELETE FROM ub_migrate_map_step_5_product_option WHERE entity_name = 'catalog_product_bundle_selection' AND m2_id NOT IN (Select selection_id From catalog_product_bundle_selection);

+ Once done, clean the cache of our module by running the command:
rm -rf pub/ub-tool/protected/runtime/cache/
Please note that if you enabled Php Memcached in our module, you have to refresh this cache engine too.
 
+ And then, you can continue with the data migration in step #5:
php -f bin/ubdatamigration run --step=5 --mode=update;

Regards,
Mall.

#4

Please login or Register to Submit Answer

Written By

Comments