0

When i am importing a csv file in magento 2.4.6. It is giving me this error again and again

Additional data: <div class="messages"><div class="message message-error error"><div data-ui-id="messages-message-error" >Warning: Trying to access array offset on value of type null in /chroot/home/html/vendor/magento/module-catalog-import-export/Model/Import/Product.php on line 1721</div></div></div>

Also some imports are working and some are giving this error. Also when i imported a file when it got imported all the other products from category disappeared and only imported products remain. I can make sure that the csv file is valid one. I tried reindexing but having same issue. The error i am encountering is listed above.This is line foreach ($websiteData as $delSku => $websites) { $productId = $this->skuProcessor->getNewSku($delSku)['entity_id']; $delProductId[] = $productId; Please help!

3
  • I checked in admin and found that the category of the products are not assigned . I assigned it previously and now there is no category selected. I am not sure how this has happened Commented Nov 21, 2023 at 7:43
  • Before Import, what you have selected into "Import Behavior" ? Commented Nov 21, 2023 at 10:46
  • I have selected add/update . Commented Nov 22, 2023 at 7:09

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.