Skip to content

Magento 2.4 stock quantity inconsistencies

I’m running Magento 2.4

I have stock inconsistencies, so in a number of cases the product qty is greater than the saleable quantity, even when there are no pending dispatch orders etc… Therefore they should match.

This aside – I have tried to fix the issue for a single product, where the qty is 1 and the saleable quantity is 0, using the CLI commands:

bin/magento inventory:reservation:list-inconsistencies

and

bin/magento inventory:reservation:create-compensations <ORDER_INCREMENT_ID>:::

Clearly I used the correct values in the placeholders for the second command. When I run the list command again having created the compensation it correctly reports the inconsistency has now been resolved, as it no longer appears in the list.

Great you might say. That is what I said until I went into Magento Admin and browsed to the product I altered. I was surprised to see it is still being reported as qty 1 and saleable quantity 0, thus still being an inconsistency.

Can anyone tell me why the stock count for qty and saleable quantity could still be different, when there are no outstanding orders for this SKU? Or to put it another way – am I doing the correct thing to fix the original issue?

Your thoughts are most welcome!