Magento 2.3.x – Fix “Stock item was unable to be saved” when save products on admin


If you are getting the following error message, when trying to save an existing product, or creating a new one:

 

you have to do the following.

  • Review if you have a named “default” stock source on your admin. Under Stores > Inventory > Sources. If you don’t have this one, let’s create it.
  • If the problem persist, try running the following commands below:
  • If problem persist, you can also try changing your indexes from “update on save” to “update by schedule” and try. This can be a solution or a workaround, but at least you will have a north to see were your problem is.