Error on Delta Migration

Hi, we are currently receiving the following error when we run our delta migration.
[Processing][delta] in step #5: ……………………..PHP Error[8]: Trying to get property ‘frontend_input’ of non-object
    in file /efs/carlingfordmusic/pub/ub-tool/protected/controllers/Step5Controller.php at line 692
#0 /efs/carlingfordmusic/pub/ub-tool/protected/controllers/Step5Controller.php(584): Step5Controller->_migrateCatalogProductEAV()
#1 /efs/carlingfordmusic/pub/ub-tool/protected/controllers/Step5Controller.php(157): Step5Controller->_migrateCatalogProducts()
#2 /efs/carlingfordmusic/pub/ub-tool/protected/commands/RunCommand.php(74): Step5Controller->actionRun()
#3 /efs/carlingfordmusic/pub/ub-tool/protected/commands/RunCommand.php(57): RunCommand->_migrateData()
#4 unknown(0): RunCommand->actionIndex()
#5 /efs/carlingfordmusic/pub/ub-tool/yii-1.1.19/console/CConsoleCommand.php(172): ReflectionMethod->invokeArgs()
#6 /efs/carlingfordmusic/pub/ub-tool/yii-1.1.19/console/CConsoleCommandRunner.php(71): RunCommand->run()
#7 /efs/carlingfordmusic/pub/ub-tool/yii-1.1.19/console/CConsoleApplication.php(92): CConsoleCommandRunner->run()
#8 /efs/carlingfordmusic/pub/ub-tool/yii-1.1.19/base/CApplication.php(185): CConsoleApplication->processRequest()
#9 /efs/carlingfordmusic/pub/ub-tool/yii-1.1.19/yiic.php(33): CConsoleApplication->run()
#10 /efs/carlingfordmusic/pub/ub-tool/protected/ubdatamigration_cli.php(5): require_once()
#11 /efs/carlingfordmusic/bin/ubdatamigration(4): require_once()

I have tried running the clean command on that step and clearing the cache to no success. 
 

1 answer

Profile photo of Mall Staff 141850.00 $tone June 17, 2020
Public

Hi Lachlan Hutchison,

[Processing][delta] in step #5: ……………………..PHP Error[8]: Trying to get property ‘frontend_input’ of non-object

That was because you did delete at least one product attribute in M1 database after the first migration.

You can try with these steps to continue:

+ (IMPORTANT) Back up your current M1 database first
+ Run the following SQL queries in your M1 database:

Delete From catalog_product_entity_int Where attribute_id NOT IN (Select attribute_id From eav_attribute);
Delete From catalog_product_entity_text Where attribute_id NOT IN (Select attribute_id From eav_attribute);
Delete From catalog_product_entity_varchar Where attribute_id NOT IN (Select attribute_id From eav_attribute);
Delete From catalog_product_entity_datetime Where attribute_id NOT IN (Select attribute_id From eav_attribute);
Delete From catalog_product_entity_decimal Where attribute_id NOT IN (Select attribute_id From eav_attribute);

+ Once done, you can continue with the delta migration in step #5.

Regards,
Mall.

#1

Please login or Register to Submit Answer

Written By

Comments