I am trying to perform order checkout on 2.4 EE and getting the below error:

An ID is needed. Set the ID and try again.

What can be the cause of this issue? I checked in the logs but can not see any error on this?

  • Thanks, As i have removed Amasty_Sorting in di.xml Its working for me , Thank you! – Siyaram Gurjar Feb 22 at 10:05

For me, the issue was Amasty_Sorting in di.xml

 <!-- save info about reservation for configurables -->
    <type name="Magento\InventoryReservations\Model\AppendReservations">
        <plugin name="Amasty_Sorting::ReserveQtyForParents"

Removed this and resolved the issue.

To find out how to fix the issue I did a grep of the app directory to see which modules were tapping into OrderRepository

grep -R 'OrderRepository' app

  • not yet, still facing the issue :( – Tejas Vyas Nov 6 '20 at 10:28
  • Please see above. The error occurs when a module is tapping into the OrderRepository on checkout. In this instance it was stock reservation – elfling Nov 6 '20 at 16:28
  • Did that resolve it for you? – elfling Nov 9 '20 at 16:17

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.