magento / magento/data-migration-tool

Data Migration: Default attributes missing in attribute aets if it is not in default Magento 2 attribute set

Open
#817 11 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
339
Forks
195
PR merge metrics
No merged PRs in 30d

Description

Preconditions
  1. Magento 1.9.4.4, PHP 7.2
  2. Magento 2.3.5, PHP 7.2
  3. Data Migration Tool 2.3.5
Steps to reproduce
  1. Source store has attribute sets with manufacturer attribute
  2. Magento 2 default attribute set has not the manufacturer attribute in it
  3. After migration, all migrated attribute sets are missing the manufacturer attribute
Expected result

Attribute Sets have the same attributes as the source store

Actual result

So far i understand following happens:
The Migration Tool copies the default attribute set of Magento 2 and inserts the new attributes from the old store. So the new Attribute Sets have no assigned manufacturer attribute.
It does not reassign the manufacturer attribute to the new / default attribute sets, if the source store attribute sets had this attribute.
Additional, the attribute values of all products are there till the PostProcessing.
The PostProcessing Cleanup deletes the manufacturer values from every product, because the attribute is in no attribute set.

Additional notes

When i add manufacturer to the default attribute set in Magento 2 before data migration, everything works.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the Data Migration Tool's attribute-set migration entry point and its PostProcessing Cleanup stage described in the report. Compare how source attribute-set assignments are copied when the Magento 2 default set lacks an attribute. Done means migrated sets retain the source attributes and cleanup no longer removes their product values.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend, databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.