-
Notifications
You must be signed in to change notification settings - Fork 254
Open
Labels
Description
Preconditions (*)
- Magento 2.3.5-p2
- MSI 1.1.5
Steps to reproduce (*)
- Create simple product in admin with manage_stock = 1
- Order product
- Attempt to ship order via shipment API (salesShipOrderV1)
Expected result (*)
- Shipment is created
Actual result (*)
- Shipment is not created with the following error shown: Could not save a shipment, see error log for details
Error log shows the following:
main.CRITICAL: The shipment couldn't be saved. {"exception":"[object] (Magento\\Framework\\Exception\\CouldNotSaveException(code: 0): The shipment couldn't be saved. at http/vendor/magento/module-sales/Model/Order/ShipmentRepository.php:150, Magento\\Framework\\Exception\\NoSuchEntityException(code: 0): Source item not found by source code: string and sku: 101308. at http/vendor/magento/module-inventory-source-deduction-api/Model/GetSourceItemBySourceCodeAndSku.php:59)"} []
Note: Shipping the order in Magento admin works fine, only when shipping via the API does this error occur.