Created by Daniel on 11/22/2024
If you disable MSI or disable Magento_Inventory and re-enable it afterwards, a database relation is broken. This typically shows these 2 errors:
There are no source items with the in stock status.
Some of the selected item options are not currently available.
Even if the settings are correct, so the product is saleable and in stock, its still not possible to add these products to the cart and to checkout.
Solution:
- restore the Source and Stock options in Stores->Inventory in the backend. - Look at the database and restore inventory_source_stock_link because its is not generated properly after re-enabling this feature.
Should look like this (inventory_source_stock_link)
link_id stock_id source_code priority 1 1 default 1
Tags:
Magento_InventorySalesApi Magento_Inventory Magento_InventorySales Magento_InventorySalesApi