Skip to content

Product flat table - Incorrect data #26749

Closed
@tranhoangthien1990

Description

@tranhoangthien1990

We're current facing an issue that the product data has been inserted to an incorrect flat table.

Preconditions (*)

  1. Magento version 2.3.3 with Sample Data
  2. Enable Catalog Product Flat.
  3. Index mode for Catalog Product Flat: Update on save

Steps to reproduce (*)

  1. Create 2 new websites, for each website, create one store view (let say the store view id for website 1 is 2, store view id for website 2 is 3).
  2. Come to any product detail, try to assign this product to website 1, then click Save.

Expected result (*)

  1. Product information just insert to flat table of the website that product is assigned to (in this case, this table is catalog_product_flat_2)

Actual result (*)

  1. Product information has been inserted for all product flat table (in this case, include catalog_product_flat_3)

After i run php bin/magento indexer:reindex catalog_product_flat all invalid data has been removed (in this case, this product information has been removed in catalog_product_flat_3 ).
Please help to check it again.
Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component: CatalogComponent: IndexerIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentReported on 2.3.3Indicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branch

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions