cancel
Showing results for 
Search instead for 
Did you mean: 

Migration M1 to M2 Undefined Offset Exception

Highlighted

Migration M1 to M2 Undefined Offset Exception

Hello, We are doing data migration but getting below error. Could anyone please suggest a way.

M1 Version: 1.9.3.2

M2 Version: 2.3.5

 

[Exception]
Notice: Undefined offset: 19 in /var/www/html/<project>/vendor/magento/data-migration-
tool/src/Migration/Step/Eav/Data.php on line 286

2 REPLIES 2
Highlighted

Re: Migration M1 to M2 Undefined Offset Exception

Hi @ram1ranosy60db,

 

Can you try below fix mentioned in the file and check if this solves your issue or not.

https://github.com/magento/data-migration-tool/commit/ea9cc9f21d3634dd3695fd88f9c869d9535cb6a6

 

Hope this helps you!

Problem Solved! Click Kudos & Accept as Solution!

Highlighted

Re: Migration M1 to M2 Undefined Offset Exception

Hi @ram1ranosy60db 

Go to file  src/Migration/Step/Eav/Data.php

 

and add below code 

 if (!isset($this->mapAttributeGroupIdsSourceDest[$record['attribute_group_id']])) {
                continue;
            }

Example:

 foreach ($customEntityAttributes as $record) {
            if (!isset($this->mapAttributeGroupIdsSourceDest[$record['attribute_group_id']])) {
                continue;
            }
            $record['sort_order'] = $this->getCustomAttributeSortOrder($record);
            $record['attribute_group_id'] = $this->mapAttributeGroupIdsSourceDest[$record['attribute_group_id']];
            $record['entity_attribute_id'] = null;

It may help!
Problem Solved? Please click on  'Kudos' & Accept as Solution!