This article provides a fix for an Adobe Commerce known issue for an exception thrown during setup:upgrade
when installing B2B 1.2.0.
Steps to reproduce
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
Apply the patch provided in this article.
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:
Composer patch
See How to apply a composer patch provided by Adobe for composer patch instructions.
Git patch