cancel
Showing results for 
Search instead for 
Did you mean: 

Magento2.4.3: Error while instaling Sample Data?

Magento2.4.3: Error while instaling Sample Data?

I'm getting error after deploying sample data when i run setup:upgrade command i get this error, any idea?

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

1 REPLY 1

Re: Magento2.4.3: Error while instaling Sample Data?

Hello @makeupidea71e6 

 

solutions for the above issue:

  1. Fix and validate the above CSVs manually or online tool like https://csvlint.io/

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

     

  2. Comment line of code, calling above CSVs

    \Magento\CatalogRuleSampleData\Setup\Installer.php
    \Magento\SalesRuleSampleData\Setup\Installer.php
    
    like:
        /**
         * {@inheritdoc}
         */
        public function install()
        {
            //$this->rule->install(['Magento_CatalogRuleSampleData::fixtures/catalog_rules.csv']);
        }
    It may help you!

     

Problem solved? Click Accept as Solution!