How do I resolve an error on Step #7?

I’ve begun migrating the database but have encountered an error on Step 7.
 

Processing in step #7….PHP Error[8]: Undefined offset: 0
    in file /chroot/home/nodomain/no.domain/html/pub/ub-tool/protected/controllers/Step7Controller.php at line 911
#0 /chroot/home/nodomain/no.domain/html/pub/ub-tool/protected/controllers/Step7Controller.php(681): Step7Controller->_migrateSalesRuleCustomerGroups()
#1 /chroot/home/nodomain/no.domain/html/pub/ub-tool/protected/controllers/Step7Controller.php(167): Step7Controller->_migrateSalesRules()
#2 /chroot/home/nodomain/no.domain/html/pub/ub-tool/protected/commands/RunCommand.php(52): Step7Controller->actionRun()
#3 /chroot/home/nodomain/no.domain/html/pub/ub-tool/protected/commands/RunCommand.php(40): RunCommand->_migrateData()
#4 unknown(0): RunCommand->actionIndex()
#5 /chroot/home/nodomain/no.domain/html/pub/ub-tool/yii/console/CConsoleCommand.php(172): ReflectionMethod->invokeArgs()
#6 /chroot/home/nodomain/no.domain/html/pub/ub-tool/yii/console/CConsoleCommandRunner.php(71): RunCommand->run()
#7 /chroot/home/nodomain/no.domain/html/pub/ub-tool/yii/console/CConsoleApplication.php(92): CConsoleCommandRunner->run()
#8 /chroot/home/nodomain/no.domain/html/pub/ub-tool/yii/base/CApplication.php(184): CConsoleApplication->processRequest()
#9 /chroot/home/nodomain/no.domain/html/pub/ub-tool/yii/yiic.php(33): CConsoleApplication->run()
#10 /chroot/home/nodomain/no.domain/html/pub/ub-tool/protected/ubdatamigration_cli.php(5): require_once()
#11 /chroot/home/nodomain/no.domain/html/bin/ubdatamigration(4): require_once()

I have some custom sales rules from another module, but can’t seem to disable the importation of sales rules so I’m currently stuck.
 

9 answers

Profile photo of Mall Staff 184060.00 $tone December 20, 2016
Public

Hi jklina,

I have some custom sales rules from another module, but can’t seem to disable the importation of sales rules so I’m currently stuck.

Yeah, sales rules is related of your sales_orders data. So we have required data migration for this.
That issue come from your special data with sales rules. So, let’s provide me the admin and SSH credentials of your Magento2.
I will check further and tell you workaround to solve that.
Regards,
Mall.
 

#1
Profile photo of Mall Staff 184060.00 $tone December 21, 2016
Public

Hi jklina,
I have just upgraded our tool to latest version 3.0.4 for your working.
And now the issue as you mentioned about sales rules will be solve too.
Please have a look and continue with data migration in your working.
And tell me know if you need further assistance.
Regards,
Mall.

#9

Please login or Register to Submit Answer

Written By

Comments