The MDVA-20376 Magento patch solves the issue for a No such entity with customerId = 1 error for logged-in customers after order placement. This patch is available when the Magento Quality Patch (MQP) tool 1.0.13 is installed. Please note that the issue was fixed in Magento version 2.3.4.
Affected products and versions
The patch is created for Magento version:
Magento Commerce Cloud 2.3.2
Compatible with Magento versions:
Magento Commerce Cloud and Magento Commerce 2.3.2 - 2.3.3-p1
Note: the patch can be applicable to other versions. To check if the patch is compatible with your Magento version, run ./vendor/bin/magento-patches status
.
Issue
Steps to reproduce:
- Navigate to the storefront, and log in as a registered user.
- Place an order.
- In the CLI, go to
var/log
and you will see theexception.log
file.
Expected results:
No errors should appear in the logs, as expected.
Actual results:
The exception log fills up with errors similar to:
report.CRITICAL: No such entity with customerId = 1 {"exception":"[object] (Magento\\Framework\\Exception\\NoSuchEntityException(code: 0): No such entity with customerId = 1 at /mnt/data/home/nyarlaga/dev/232/vendor/magento/framework/Exception/NoSuchEntityException.php:50)"} []
Apply the patch
To apply individual patches use the following links depending on your Magento product:
- Magento Commerce: DevDocs Software Update Guide > Apply Patches.
- Magento Commerce Cloud: DevDocs Upgrades and Patches > Apply Patches.
Related reading
To learn more about Magento Quality Patches, refer to:
- Magento Quality Patches released: a new tool to self-serve quality patches.
- Check patch for Magento issue with Magento Quality Patches.
For info about other patches available in MQP tool, refer to the Patches available in MQP tool section.