Hi,
I'm getting this below error while do migration & also i can't find the details of the issue from log as well
Notice: Undefined offset: 4465 in /var/www/staging.website.com/vendor/magento/data-migration-tool/src/Migration/Step/Eav/Data.php on line 561
Can any one help?
Hi @gkarthick87
Try to replace function "private function migrateCustomEntityAttributes()" under src/Migration/Step/Eav/Data.php with below code:
/** * Migrate custom entity attributes */ private function migrateCustomEntityAttributes() { $this->progress->advance(); $sourceDocName = 'eav_entity_attribute'; $destinationDocument = $this->destination->getDocument( $this->map->getDocumentMap($sourceDocName, MapInterface::TYPE_SOURCE) ); $recordsToSave = $destinationDocument->getRecords(); $customAttributeIds = $this->modelData->getCustomAttributeIds(); $customEntityAttributes = $this->source->getRecords( $sourceDocName, 0, $this->source->getRecordsCount($sourceDocName), new \Zend_Db_Expr(sprintf('attribute_id IN (%s)', implode(',', $customAttributeIds))) ); 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; $destinationRecord = $this->factory->create(['document' => $destinationDocument, 'data' => $record]); $recordsToSave->addRecord($destinationRecord); } $this->saveRecords($destinationDocument, $recordsToSave); }
It may help you!
Or you can refer below link:
https://github.com/magento/data-migration-tool/issues/813
Problem Solved? Please click on 'Kudos' & Accept as Solution!
Hi @gkarthick87 ,
On one of forum question we were facing the same issue and finally conclude that.
I just came across a few forums that said a bug in Magento 2.3.5 data migration tool. https://magento.stackexchange.com/a/314906/57334
So if issue still persists after @Bhanu Periwal hotfix. Try to migrate using 2.3.4 version.
Hope this helps you!
Problem Solved! Click Kudos & Accept as Solution!