Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The stock item was unable to be saved. Please try again. Magento 2.4.0

I installed magento 2.4.0 on my Linux server from godaddy. I'm unable to add the products to it. It is showing the Error is The stock item was unable to be saved. Please try again. Can any one help me from this pleaseenter image description here

like image 499
nikhil gantyala Avatar asked Nov 02 '20 14:11

nikhil gantyala


3 Answers

Please change all indexer as Update by Schedule mode in system-> index management. It's working for me.

like image 50
Agila kaliyan Avatar answered Oct 16 '22 12:10

Agila kaliyan


If you are using Elasticsearch instead of Mysql. then please check once that elasticsearch is working or not.

sudo service elasticsearch status    // for checking the Running Status
sudo service elasticsearch start    // for Start
sudo service elasticsearch restart    // for Restart
like image 13
Vishal Thakur Avatar answered Oct 16 '22 14:10

Vishal Thakur


I have fixed it. There was an entry missing in cataloginventory_stock

try to run this query

INSERT INTO cataloginventory_stock (stock_id, website_id, stock_name) VALUES ('1', '1', 'default');
like image 4
Jigar Prajapati Avatar answered Oct 16 '22 13:10

Jigar Prajapati