Closed
Description
Preconditions and environment
- 2.4.6-p2
Steps to reproduce
To replicate this you need
- Magento 2 (e.g. 2.4.1) that was migrated from 1.x and the 1.x instance had multiselect attributes with data (stored in _text table)
- Use data migration tool to transfer the data which will copy the values from _text table to _varchar table during migration
- Upgrade to 2.4.6-p2
The system will try to copy data from the _varchar table back to the _text table which was already migrated with the data migration tool to _text and to _varchar table. In the process you'll get this error about duplicate values
Expected result
Upgrade occurs properly
Actual result
Duplicated values throw exceptions
Additional information
There is only one real solution here, the patch needs to first clear the invalid data from _text table before migrating from _varchar to _text
e.g.
delete from catalog_product_entity_text where catalog_product_entity_text.attribute_id in (select eav_attribute.attribute_id from eav_attribute where eav_attribute.backend_type = 'varchar' and eav_attribute.entity_type_id = 4)
Release note
No response
Triage and priority
- Severity: S0 - Affects critical data or functionality and leaves users without workaround.
- Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
- Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
- Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
- Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.