ACSD‑68615: Inventory reservation compensation CLI exception on missing order ID
The ACSD-68615 patch fixes the issue where the inventory reservation compensation CLI showed an exception if the processed combination had a missing order ID. This patch is available when the Quality Patches Tool (QPT) 1.1.75 is installed. The patch ID is ACSD-68615. Please note that this issue is scheduled to be fixed in Adobe Commerce 2.4.9.
Affected products and versions
The patch is created for Adobe Commerce version:
- Adobe Commerce (all deployment methods) 2.4.6-p12
Compatible with Adobe Commerce versions:
- Adobe Commerce (all deployment methods) 2.4.4 - 2.4.8-p3
magento/quality-patches package to the latest version and check the compatibility on the Quality Patches Tool: Search for patches page. Use the patch ID as a search keyword to locate the patch.Issue
The inventory reservation compensation CLI showed an exception if the processed combination had a missing order ID.
Steps to reproduce:
Run the following command:
bin/magento inventory:reservation:create-compensations 000000003:Test:-1:3
Expected results:
No error is returned. There is validation in place to ensure that the specified order and product exist, and the command is skipped for any non‑existent order or product.
Actual results:
There is an error in app/code/Magento/InventoryReservationCli/Command/Input/GetReservationFromCompensationArgument.php at line: 105
Call to a member function getEntityId() on false#0 app/code/Magento/InventoryReservationCli/Command/CreateCompensations.php(136):
Apply the patch
To apply individual patches, use the following links depending on your deployment method:
- Adobe Commerce or Magento Open Source on-premises: Quality Patches Tool > Usage in the Quality Patches Tool guide.
- Adobe Commerce on cloud infrastructure: Upgrades and Patches > Apply Patches in the Commerce on Cloud Infrastructure guide.
Related reading
To learn more about Quality Patches Tool, refer to:
- Quality Patches Tool: A self-service tool for quality patches in the Tools guide.