-
Notifications
You must be signed in to change notification settings - Fork 197
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Catalog Search index process unknown error: SQLSTATE[42S22]: Column not found: 1054 Unknown column 't.store_id' in 'field list', query was: SELECT u
.* FROM ( (SELECT t
.value
, t
.attribute_id
, t
.store_id
FROM customer_entity_varchar
AS t
....
#842
Comments
Hi @iamprasanthmp. Thank you for your report. Please, add a comment to assign the issue:
|
Hi @iamprasanthmp! 👋 |
Hi @iamprasanthmp! 👋 |
@iamprasanthmp Hi, i'm having the same problem.. so far from what i can tell, something in magento is trying to use customer address tables for the category information. i got the admin working by doing this:
by adding the missing store_id field to those tables, indexing will work, and you should be able to gain access to the CATALOG -> CATEGORIES page, but you'll see that none of the categories have any text.. just their id's, and number of products in parentheses. i started messing around by adding a catagory name and grepping to see where it changed, and if your actually able to save without it erroring.. you'll notice that it's populating the i'm pretty sure it's supposed to be using so in my case, i have a lot of sites i've been converting, and the ones that were true 1.9.0.1 convert no problem, but sites that used to be 1.3.2.4 and got migrated over to 1.9.0.1 then migrated again to 2.4.0 are the ones that are failing for me. |
Hello @thedarkboo, |
Hello, i just wanted to follow up. When i did a i might be wrong, but i think this might have to do with the way things were inserted in the original db. The order of all the inserts seem to be odd numbers.. so the sequence of ids are inserted by odds like.. 1, 3, 5, 7, 9. i noticed that in my later 1.9 db's (that work without any problems), they inserts are ordered sequentially 1, 2, 3, 4, 5... |
@thedarkboo @iamprasanthmp
{entity_type_id_you_need} you can check in |
@romastepa In the end, none of these solutions worked for me.. because when you set the entity_type_id to something else, it causes problems elsewhere. So in the end, i wrote a script to go through and reindex the db tables to be sequential and it seems to be working fine now. The issue i had after setting the entity_type_id to 5 was the customer addresses where not showing up in the orders or their overview page.. related to: magento/magento2#5873 |
Preconditions
Steps to reproduce
Expected result
Actual result
Catalog Search index process unknown error:
SQLSTATE[42S22]: Column not found: 1054 Unknown column 't.store_id' in 'field list', query was: SELECT
u.* FROM ( (SELECT
t.
value,
t.
attribute_id,
t.
store_idFROM
customer_entity_varcharAS
tWHERE (entity_id = '3') AND (attribute_id IN ('111', '479', '113', '114', '118', '563', '533', '514', '927', '982')) AND (
store_idIN ('2', 0)))UNION ALL(SELECT
t.
value,
t.
attribute_id,
t.
store_idFROM
customer_entity_intAS
tWHERE (entity_id = '3') AND (attribute_id IN ('119', '940', '941', '937', '117', '120')) AND (
store_idIN ('2', 0)))UNION ALL(SELECT
t.
value,
t.
attribute_id,
t.
store_idFROM
customer_entity_textAS
tWHERE (entity_id = '3') AND (attribute_id IN ('112', '115', '116', '121', '122', '123', '926', '530')) AND (
store_idIN ('2', 0)))UNION ALL(SELECT
t.
value,
t.
attribute_id,
t.
store_idFROM
catalog_category_entity_varcharAS
tWHERE (entity_id = '3') AND (attribute_id IN ('965')) AND (
store_idIN ('2', 0)))UNION ALL(SELECT
t.
value,
t.
attribute_id,
t.
store_idFROM
customer_entity_datetimeAS
tWHERE (entity_id = '3') AND (attribute_id IN ('565', '566')) AND (
store_idIN ('2', 0)))UNION ALL(SELECT
t.
value,
t.
attribute_id,
t.
store_idFROM
customer_entity_decimalAS
tWHERE (entity_id = '3') AND (attribute_id IN ('942')) AND (
store_idIN ('2', 0))) ) AS
uORDER BY
store_idASC
Additional notes
I managed to migrate both Settings and data successfully to a freshly installed magento 2.4.0 project.
My orders, products, settings etc .. where successfully migrated ( i am able to see them in backend )
But when i run the command
php bin/magento indexer:reindex
after successful migration, it shows this sql error.This same sql error is shown when i take the category menu in backend admin panel.
I checked in my old magento 1.9.4.5 site, there also
store_id
column is not present incustomer_entity_varchar
table, but everything is working perfectly there.Tried migrating data again in a freshly installed magento 2.4.0 agian, but no luck.
The text was updated successfully, but these errors were encountered: