data-migration-tool icon indicating copy to clipboard operation
data-migration-tool copied to clipboard

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

Open pdpavel opened this issue 4 years ago • 1 comments

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 ...

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

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())) {

pdpavel avatar Jan 04 '21 19:01 pdpavel

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


m2-assistant[bot] avatar Jan 04 '21 19:01 m2-assistant[bot]