inventory icon indicating copy to clipboard operation
inventory copied to clipboard

Product data import causes default stock source to be added back into products

Open kevinvarley opened this issue 3 years ago • 2 comments

The default stock source is added back into products after a data import despite it being explicitly removed from products previously.

Should the default stock be being added back into products if the merchant has setup a custom stock / source?

Preconditions (*)

  1. Install Magento 2.4.3-p1 with sample data
  2. In the admin area setup a new inventory source
  3. In the admin area setup a new stock, attach the new stock source only and assign this stock to the default website
  4. In the admin area using the product grid, transfer all stock from default to your new custom stock

Steps to reproduce (*)

  1. In the admin area go to System -> Data Transfer (Heading) -> Import
  2. Choose the following options (leave all other options as default):
  • Entity Type = Products
  • Import Behavior = Add/Update
  1. Run the import with a file as follows:
sku,price
MH02-XS-Black,60

Expected result (*)

  1. Product with SKU MH02-XS-Black should be updated to show the new price of 60 USD
  2. Stock sources should remain unchanged, as we have not updated stock

Actual result (*)

  1. The default stock source has been added back into the product despite us not using it against any product in the catalog

kevinvarley avatar Feb 07 '22 14:02 kevinvarley

Hi @kevinvarley. Thank you for your report. To speed up processing of this issue, make sure that you provided sufficient information.

Add a comment to assign the issue: @magento I am working on this


m2-assistant[bot] avatar Feb 07 '22 14:02 m2-assistant[bot]