Adobe Commerce 2.4.0: exception during B2B 1.2.0 install
This article provides a fix for an Adobe Commerce known issue for an exception thrown during setup:upgrade
when installing B2B 1.2.0.
Affected products and versions
- Adobe Commerce on-premises 2.4.0
- Adobe Commerce on cloud infrastructure 2.4.0
- B2B 1.2.0
Issue
Steps to reproduce
- Install Adobe Commerce with more than one store created.
- Create an additional store.
- Install B2B 1.2.0.
WARNING
The upgrade of any B2B instance with more than 1 store from a version below 1.2.0 or Commerce instance below 2.4.0, is also affected.
Expected result
B2B 1.2.0 installs.
Actual result
When setup:upgrade
runs to install B2B 1.2.0, this error appears on the PurchaseOrder
module:
Module 'Magento_PurchaseOrder':
Unable to apply data patch Magento\PurchaseOrder\Setup\Patch\Data\InitPurchaseOrderSalesSequence
for module Magento_PurchaseOrder. Original exception message: DDL statements
are not allowed in transactions
Solution
Apply the patch provided in this article.
Patch
The patch is attached to this article, available for download in both .composer
and .git
formats (after you unzip the files).
To download it, scroll down to the end of the article and click the file name, or click one of the following links:
How to apply a patch
Composer patch
See How to apply a composer patch provided by Adobe for composer patch instructions.
Git patch
- See Apply patches in developer documentation for git patch instructions for Adobe Commerce on cloud infrastructure.
- See Applying patches: Custom patches in developer documentation for git patch instructions for Adobe Commerce.
Related reading
- Adobe Commerce 2.4.0 known issue: raw message data display on storefront
- Adobe Commerce 2.4.0 known issue: Export Tax Rates does not work
- Adobe Commerce 2.4.0 known issue: Braintree payment methods do not show up in Multiple Addresses checkout
- Adobe Commerce 2.4.0 known issue: Error message selecting local payment method displayed for some countries during checkout
- Adobe Commerce 2.4.0 known issue: 404 error when removing rewards points on multi-shipping checkout
- Adobe Commerce 2.4.0 known issue: orders display error
- Adobe Commerce 2.4.0 B2B Admin can’t add configurable product to quote
- Adobe Commerce 2.4.0 known issue - refresh on Customer’s Activities does not work
- Adobe Commerce 2.4.0 known issue: “Add selections to my cart” button does not work
recommendation-more-help
8bd06ef0-b3d5-4137-b74e-d7b00485808a