Skip to content

Item (Magento\Catalog\Model\Product\Interceptor) with the same ID "##" already exists. #6126

Closed
@Stylish015

Description

@Stylish015

Using the in-built Product Importer we have been successfully updating our product quantities in bulk within Mangeto 2.0.5.

However since we have upgraded to Magento 2.1.0, and after a Product Import updating qty's, we get an error:
Item (Magento\Catalog\Model\Product\Interceptor) with the same ID "4" already exists.

This error shows in the Admin while trying to view products on "Products -> Catalog"

Steps to reproduce

  1. Create a csv with two columns "sku" & "qty", with the existing sku's and new product qty's
  2. Upload csv within "System -> Import" selecting:
  3. Entity Type: Products
  4. Import Behavior: Add/Update
  5. The csv checks fine (no errors) and the import is successful.
  6. Then in the Admin go to ""Products -> Catalog" get the error "Item (Magento\Catalog\Model\Product\Interceptor) with the same ID "4" already exists. "

Expected result

For the import to be successful.
It updates the product quantities successfully.
You can still view products in the Admin at "Products -> Catalog"

Actual result

While viewing Products in the Admin at "Products -> Catalog" get the error:
Item (Magento\Catalog\Model\Product\Interceptor) with the same ID "4" already exists.

Is this a bug?
Can it be fixed so we can view our products in the Admin?

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component: ImportExportIssue: Cannot ReproduceCannot reproduce the issue on the latest `2.4-develop` branchIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedIssue: Format is not validGate 1 Failed. Automatic verification of issue format is failedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentbug report

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions