magento / data-migration-tool

Magento Data Migration Tool
https://devdocs.magento.com/guides/v2.3/migration/bk-migration-guide.html
Open Software License 3.0
334 stars 200 forks source link

Incompatibility in data. Source document: eav_attribute. Field: backend_model. Error: Class Magento\Customer\Model\Customer\Attribute\Backend\Website is not mapped in record attribute_id=1 #862

Open pdpavel opened 3 years ago

pdpavel commented 3 years ago

Preconditions

opensource-to-opensource magento 1.9.4.1 to magento 2.4.0 Enabled only <config xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="urn:magento:module:Magento_DataMigrationTool:etc/config.xsd"> ...

... Migration\Step\Eav\Integrity Migration\Step\Eav\Data Migration\Step\Eav\Volume ... 1. 2. ### Steps to reproduce php bin/magento migrate:data /pass_to_project/app/code/PD/Migration/etc/opensource-to-opensource/1.9.4.1/config.xml ### Expected result No errors for standard attributes 1. ### Actual result I've got a lot of errors for all magento standard attributes [2021-01-04 18:28:41][ERROR]: Incompatibility in data. Source document: eav_attribute. Field: backend_model. Error: Class Magento\Customer\Model\Customer\Attribute\Backend\Website is not mapped in record attribute_id=1 [2021-01-04 18:28:41][ERROR]: Incompatibility in data. Source document: eav_attribute. Field: source_model. Error: Class Magento\Customer\Model\Customer\Attribute\Source\Website is not mapped in record attribute_id=1 [2021-01-04 18:28:41][ERROR]: Incompatibility in data. Source document: eav_attribute. Field: backend_model. Error: Class Magento\Customer\Model\Customer\Attribute\Backend\Store is not mapped in record attribute_id=2 [2021-01-04 18:28:41][ERROR]: Incompatibility in data. Source document: eav_attribute. Field: source_model. Error: Class Magento\Customer\Model\Customer\Attribute\Source\Store is not mapped in record attribute_id=2 [2021-01-04 18:28:41][ERROR]: Incompatibility in data. Source document: eav_attribute. Field: source_model. Error: Class Magento\Customer\Model\Customer\Attribute\Source\Group is not mapped in record attribute_id=10 ... 1. [Screenshot, logs] ### Additional notes As I can see, problem may be here \Migration\Reader\ClassMap::hasMap change line if (is_string($className) && array_key_exists($className, $this->getMap())) { to if (is_string($className) && in_array($className, $this->getMap())) {
m2-assistant[bot] commented 3 years ago

Hi @pdpavel. Thank you for your report. To help us process this issue please make sure that you provided sufficient information.

Please, add a comment to assign the issue: @magento I am working on this