Skip to content

Commit 6b9aa47

Browse files
committed
Resolved undefined index issue for import adapter
1 parent b8892f0 commit 6b9aa47

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/code/Magento/ImportExport/Model/Import/Entity/AbstractEntity.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,9 @@ protected function _saveValidatedBunches()
408408
if ($source->valid()) {
409409
try {
410410
$rowData = $source->current();
411-
$skuSet[$rowData['sku']] = true;
411+
if (array_key_exists('sku', $rowData)) {
412+
$skuSet[$rowData['sku']] = true;
413+
}
412414
} catch (\InvalidArgumentException $e) {
413415
$this->addRowError($e->getMessage(), $this->_processedRowsCount);
414416
$this->_processedRowsCount++;

0 commit comments

Comments
 (0)