Migration error on Step #6

Hi,
When I am migration Step #6 then error is showing like below:

Processing in step #6…PHP Error[2]: Creating default object from empty value
 in file /var/www/html/pub/ub-tool/protected/controllers/Step6Controller.php at line 396
Earlier, i have followed same step and it was working.
Please see screen shot of error: https://prnt.sc/o2s780

Please resolve my issue ASAP.
Thanks,
 

1 answer

Profile photo of Mall Staff 184060.00 $tone June 17, 2019
Public

Hi Michael,

Processing in step #6…PHP Error[2]: Creating default object from empty value
 in file /var/www/html/pub/ub-tool/protected/controllers/Step6Controller.php at line 396

That issue was because you did delete at least one customer after the first migration with our migration tool. To solve that issue, you can follow steps below:

+ Run the following SQL in your M2 database:

DELETE FROM ub_migrate_map_step_6 WHERE entity_name = 'customer_group' AND m2_id NOT IN (Select customer_group_id From customer_group);
DELETE FROM ub_migrate_map_step_6 WHERE entity_name = 'customer_entity' AND m2_id NOT IN (Select entity_id From customer_entity);
DELETE FROM ub_migrate_map_step_6_customer_address WHERE entity_name = 'customer_address_entity' AND m2_id NOT IN (Select entity_id From customer_address_entity);

 
+ Clean the cache of our migration tool by running the command:
rm -rf pub/ub-tool/protected/runtime/cache/

+ And then, you can continue with the data migration in Step #6 by running the CLI command:
php -f bin/ubdatamigration run --step=6
 
Regards,
Mall.
 

#1

Please login or Register to Submit Answer

Written By

Comments