Bagisto Forum

    Bagisto

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    Product import error: Undefined array key 1

    Bug Report
    1
    1
    6
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • K
      kenninh last edited by

      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'

      1 Reply Last reply Reply Quote 0
      • First post
        Last post