Magento data migration tool gives the error after running this command.

Afate runing php bin/magento migrate:data -r -a vendor/magento/data-migration-tool/etc/opensource-to-opensource/

Error: Record structure does not contain field alternate_group


I think this is a custom field added by a third party extension.

So, you would need to add it to ignore in /vendor/magento/data-migration-tool/etc/opensource-to-opensource//map.xml.dist

in your case


add this line in field_rules table_name.field_name

in your case table_name.alternate_group

Replace the table_name with the name of the table where the field is present. You can get the table name by looking the error thrown in the terminal.

[mode: data][stage: data migration][step: Map Step][table: here_is_your_table_name]: migrating.

Note : You might need to delete the entire database and re-run the process.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.