magento2: Unable to apply data patch Magento\CatalogSearch\Setup\Patch\Data\SetInitialSearchWeightForAttributes for module Magento_CatalogSearch.
Preconditions (*)
- Apache 2.4
- PHP 7.2
- MYSQL 8.0 from Mysql Apt Repo
Steps to reproduce (*)
- Clone and install Magento
Expected result (*)
- Magento installs
Actual result (*)
- Error:
[Progress: 377 / 686]
Module 'Magento_CatalogSearch':
In PatchApplier.php line 167:
Unable to apply data patch Magento\CatalogSearch\Setup\Patch\Data\SetInitialSearchWeightForAttributes for module Magento_CatalogSearch. Original exception message: Temporary table for index catalogsearch_fulltext doesn't exist, which is inconsistent with state of sc
ope resolver
In IndexSwitcher.php line 61:
Temporary table for index catalogsearch_fulltext doesn't exist, which is inconsistent with state of scope resolver

About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 20 (3 by maintainers)
I have this issue in 2.4.2 After bin/magento sampledata:deploy, bin/magento setup:upgrade I get exception in cli: Unable to apply data patch Magento\CatalogSampleData\Setup\Patch\Data\InstallCatalogSampleData for module Magento_CatalogSampleData. Original exception message: Rolled back transaction has not been completed correctly.
This helped me: http://www.zhishibo.com/articles/94429.html
Same issue on clean installation 2.4.5
Hi @TomashKhamlai. Thank you for your report. The issue has been fixed in magento/magento2#25357 by @akaplya in 2.3-develop branch Related commit(s):
The fix will be available with the upcoming 2.3.4 release.