[PaaS only]{class="badge informative" title="Applies to Adobe Commerce on Cloud projects (Adobe-managed PaaS infrastructure) and on-premises projects only."}

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
NOTE
The patch might become applicable to other versions with new Quality Patches Tool releases. To check if the patch is compatible with your Adobe Commerce version, update the 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:

To learn more about Quality Patches Tool, refer to:

recommendation-more-help
c2d96e17-5179-455c-ad3a-e1697bb4e8c3