1

After bin/magento sampledata:deploy;

i m trying to do bin/magento setup:upgrade; Following error thrown.

Unable to apply data patch Magento\GroupedProductSampleData\Setup\Patch\Data\InstallGroupedProductSampleData for module Magento_GroupedProductSampleData. Original exception message: Rolled back transaction has not been completed correctly.

Magento Version is 2.3.4

2
  • Did you try anything from the doc? devdocs.magento.com/guides/v2.3/install-gde/install/cli/…
    – user91436
    Commented Jul 17, 2021 at 15:07
  • struggling through same error Unable to apply data patch Magento\GroupedProductSampleData\Setup\Patch\Data\InstallGroupedProductSampleData for module Magento_GroupedProductSampleData. Original exception message: Rolled back transaction has not been completed correctly Magento Version is 2.3.4-p1
    – katajata
    Commented Mar 9, 2022 at 19:22

2 Answers 2

0

An issue like this occurred here and it was caused by wrong csv data. I changed data like [1] to [2] (adding "" on the value) in the files [3] and [4]. If it not help, check logs in system.log.

  1. ""value"":%url_key=watches%

  2. ""value"":""%url_key=watches%""

  3. /vendor/magento/module-catalog-rule-sample-data/fixtures/catalog_rules.csv

4 ./vendor/magento/module-sales-rule-sample-data/fixtures/sales_rules.csv

0

A workaround rather than a solution:

  1. Remove magento/module-grouped-product-sample-data from composer.json
  2. Run composer update magento/module-grouped-product-sample-data
  3. Rerun bin/magento setup:upgrade

Your sample data won't include grouped products, but the setup will complete (unless there is a similar issue with another sample data module - in such case repeat the procedure above for that module).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.