0

This Table ( inventory_source_item ) is Empty and which all my product show out of stock, Can anyone, please help me solve this issue

enter image description here

7
  • Let me know as per your requirement whether you want to migrate catalog data? Nov 1 '19 at 6:55
  • Thank you for reply my error is solve
    – DK Thakur
    Nov 1 '19 at 7:04
  • let me know what is the issue plz Nov 1 '19 at 7:07
  • (inventory_source_item) this table is empty after migration and show all my products is out of stock
    – DK Thakur
    Nov 1 '19 at 7:15
  • You can import CSV with stock status to resolve this issue.
    – anonymous
    Nov 1 '19 at 8:22
1

You can use the following query to build out the inventory_source_item table based on the legacy cataloginventory_stock_status table:

INSERT into `inventory_source_item`
(source_code, sku, quantity, status)
SELECT 'default', sku, qty, stock_status FROM (`cataloginventory_stock_status` as `lg` JOIN `catalog_product_entity` as `prd` on((`lg`.`product_id` = `prd`.`entity_id`)))

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.