- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2020
02:25 AM
07-23-2020
02:25 AM
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
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2020
02:35 AM
07-23-2020
02:35 AM
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!
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2020
03:20 AM
07-23-2020
03:20 AM
Re: Migration M1 to M2 Undefined Offset Exception
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!
Problem solved? Click Accept as Solution!