Product import error: Undefined array key 1
-
Hello, I got the following error when importing products. The import file has just 1 product.
I have used the import file format with the correct columns.How do I check I have the correct packages needed for the import? Thanks.
local.ERROR: Undefined array key 1 {"exception":"[object] (ErrorException(code: 0): Undefined array key 1 at /home/userone/Projects/Ecom/bagisto/packages/Webkul/DataTransfer/src/Helpers/Importers/Product/Importer.php:1295)
[stacktrace]php artisan queue:listen
INFO Processing jobs from the [default] queue.
2025-08-01 21:09:33 Illuminate\Bus\ChainedBatch .................... RUNNING
2025-08-01 21:09:33 Illuminate\Bus\ChainedBatch ............... 49.01ms DONE
2025-08-01 21:09:33 Webkul\DataTransfer\Jobs\Import\ImportBatch .... RUNNING
2025-08-01 21:09:33 Webkul\DataTransfer\Jobs\Import\ImportBatch 69.53ms FAIL
sku parent_sku locale attribute_family_code type categories name description short_description status visible_individually new featured guest_checkout length width height weight price
2215030002 4244270017 en default simple 2215000 END CAP END CAP END CAP 1 1 0 0 0 0 0 0 0.0468 0.61=====
Resolved! The error was from the inventories column where the value format is 'inventorySource=qty'