0

bin/magento sampledata:deploy executed perfectly without any error, when running bin/magento setup:upgrade I am getting following errors:-

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.4.3-p1

Please help me with your ideas so that I can fix it.

6
  • see the my updated answer for install sample data. Mar 10 at 11:11
  • Try bin/magento module:uninstall --remove-data --clear-static-content InstallGroupedProductSampleData Mar 10 at 22:15
  • $ bin/magento module:uninstall --remove-data --clear-static-content InstallGroupedProductSampleData executed above command results in following error :- Unknown module(s): InstallGroupedProductSampleData
    – katajata
    Mar 12 at 20:33
  • @Bhavesh; tried doing it by cloning also, results in error in module Unable to apply data patch Magento\BundleSampleData ....
    – katajata
    Mar 12 at 20:37
  • @katajata Please follow my step which one provided in screenshot. simply and it's working. Also, I have provided the URL for reference. Mar 14 at 4:41

1 Answer 1

0

The issue was the sample data - if you have sample data installed then first run this command php bin/magento sampledata:remove

See the below image with successfully install sample data

enter image description here

3
  • Its fresh installation; and commands executed were :- bin/magento sampledata:deploy (executed successfully) bin/magento setup:upgrade (following error ) requirement is with sample data, so tried to reset with bin/magento sampledata:reset command still no luck.
    – katajata
    Mar 10 at 9:50
  • you can run this command first then again run this command php bin/magento sampledata:remove Mar 10 at 9:55
  • devdocs.magento.com/guides/v2.4/install-gde/install/… Follow this URL, I have just install sample data in fresh magento installation and it's working. Mar 10 at 10:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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