ello,
After M1 to M2 migration when I try to add new customer I got the error below.
Any ideas?
{"0":"Type Error occurred when creating object: Magento\\Eav\\Model\\Entity\\Attribute\\Source\\Config","1":"#1 Magento\\Framework\\ObjectManager\\Factory\\Compiled->create() called at [vendor\/magento\/framework\/ObjectManager\/ObjectManager.php:56]\n#2 Magento\\Framework\\ObjectManager\\ObjectManager->create() called at [vendor\/magento\/framework\/Validator\/UniversalFactory.php:36]\n#3 Magento\\Framework\\Validator\\UniversalFactory->create() called at [vendor\/magento\/module-eav\/Model\/Entity\/Attribute\/AbstractAttribute.php:642]\n#4 Magento\\Eav\\Model\\Entity\\Attribute\\AbstractAttribute->getSource() called at [vendor\/magento\/module-customer\/Model\/AttributeMetadataResolver.php:142]\n#5 Magento\\Customer\\Model\\AttributeMetadataResolver->getAttributesMeta() called at [vendor\/magento\/module-customer\/Model\/Customer\/DataProviderWithDefaultAddresses.php:198]\n#6 Magento\\Customer\\Model\\Customer\\DataProviderWithDefaultAddresses->getAttributesMeta() called at [vendor\/magento\/module-customer\/Model\/Customer\/DataProviderWithDefaultAddresses.php:108]\n#7 Magento\\Customer\\Model\\Customer\\DataProviderWithDefaultAddresses->__construct() called at [generated\/code\/Magento\/Customer\/Model\/Customer\/DataProviderWithDefaultAddresses\/Interceptor.php:14]\n#8 Magento\\Customer\\Model\\Customer\\DataProviderWithDefaultAddresses\\Interceptor->__construct() called at [vendor\/magento\/framework\/ObjectManager\/Factory\/AbstractFactory.php:121]\n#9 Magento\\Framework\\ObjectManager\\Factory\\AbstractFactory->createObject() called at [vendor\/magento\/framework\/ObjectManager\/Factory\/Compiled.php:108]\n#10 Magento\\Framework\\ObjectManager\\Factory\\Compiled->create() called at [vendor\/magento\/framework\/ObjectManager\/ObjectManager.php:56]\n#11 Magento\\Framework\\ObjectManager\\ObjectManager->create() called at [vendor\/magento\/framework\/View\/Element\/UiComponent\/Argument\/Interpreter\/ConfigurableObject.php:107]\n#12 Magento\\Framework\\View\\Element\\UiComponent\\Argument\\Interpreter\\ConfigurableObject->evaluate() called at [generated\/code\/Magento\/Framework\/Data\/Argument\/InterpreterInterface\/Proxy.php:95]\n#13 Magento\\Framework\\Data\\Argument\\InterpreterInterface\\Proxy->evaluate() called at [vendor\/magento\/framework\/Data\/Argument\/Interpreter\/Composite.php:61]\n#14 Magento\\Framework\\Data\\Argument\\Interpreter\\Composite->evaluate() called at [vendor\/magento\/module-ui\/Config\/Data.php:164]\n#15 Magento\\Ui\\Config\\Data->evaluateComponentArguments() called at [vendor\/magento\/module-ui\/Config\/Data.php:167]\n#16 Magento\\Ui\\Config\\Data->evaluateComponentArguments() called at [vendor\/magento\/module-ui\/Config\/Data.php:111]\n#17 Magento\\Ui\\Config\\Data->initData() called at [vendor\/magento\/module-ui\/Config\/Data.php:136]\n#18 Magento\\Ui\\Config\\Data->get() called at [vendor\/magento\/framework\/View\/Layout\/Reader\/UiComponent.php:100]\n#19 Magento\\Framework\\View\\Layout\\Reader\\UiComponent->interpret() called at [vendor\/magento\/framework\/View\/Layout\/ReaderPool.php:105]\n#20 Magento\\Framework\\View\\Layout\\ReaderPool->interpret() called at [vendor\/magento\/framework\/View\/Layout\/Reader\/Container.php:84]\n#21 Magento\\Framework\\View\\Layout\\Reader\\Container->interpret() called at [vendor\/magento\/framework\/View\/Layout\/ReaderPool.php:105]\n#22 Magento\\Framework\\View\\Layout\\ReaderPool->interpret() called at [vendor\/magento\/framework\/View\/Page\/Config\/Reader\/Body.php:68]\n#23 Magento\\Framework\\View\\Page\\Config\\Reader\\Body->interpret() called at [vendor\/magento\/framework\/View\/Layout\/ReaderPool.php:105]\n#24 Magento\\Framework\\View\\Layout\\ReaderPool->interpret() called at [vendor\/magento\/framework\/View\/Layout.php:334]\n#25 Magento\\Framework\\View\\Layout->generateElements() called at [generated\/code\/Epicor\/Common\/Model\/Layout\/Interceptor.php:37]\n#26 Epicor\\Common\\Model\\Layout\\Interceptor->generateElements() called at [vendor\/magento\/framework\/View\/Layout\/Builder.php:129]\n#27 Magento\\Framework\\View\\Layout\\Builder->generateLayoutBlocks() called at [vendor\/magento\/framework\/View\/Page\/Builder.php:55]\n#28 Magento\\Framework\\View\\Page\\Builder->generateLayoutBlocks() called at [vendor\/magento\/framework\/View\/Layout\/Builder.php:65]\n#29 Magento\\Framework\\View\\Layout\\Builder->build() called at [vendor\/magento\/framework\/View\/Layout.php:259]\n#30 Magento\\Framework\\View\\Layout->build() called at [vendor\/magento\/framework\/View\/Layout.php:884]\n#31 Magento\\Framework\\View\\Layout->getBlock() called at [vendor\/magento\/module-backend\/Model\/View\/Result\/Page.php:26]\n#32 Magento\\Backend\\Model\\View\\Result\\Page->setActiveMenu() called at [vendor\/magento\/module-customer\/Controller\/Adminhtml\/Index\/Edit.php:56]\n#33 Magento\\Customer\\Controller\\Adminhtml\\Index\\Edit->execute() called at [vendor\/magento\/framework\/App\/Action\/Action.php:108]\n#34 Magento\\Framework\\App\\Action\\Action->dispatch() called at [vendor\/magento\/module-backend\/App\/AbstractAction.php:248]\n#35 Magento\\Backend\\App\\AbstractAction->dispatch() called at [vendor\/magento\/framework\/Interception\/Interceptor.php:58]\n#36 Magento\\Customer\\Controller\\Adminhtml\\Index\\Edit\\Interceptor->___callParent() called at [vendor\/magento\/framework\/Interception\/Interceptor.php:138]\n#37 Magento\\Customer\\Controller\\Adminhtml\\Index\\Edit\\Interceptor->Magento\\Framework\\Interception\\{closure}() called at [vendor\/magento\/module-backend\/App\/Action\/Plugin\/Authentication.php:143]\n#38 Magento\\Backend\\App\\Action\\Plugin\\Authentication->aroundDispatch() called at [vendor\/magento\/framework\/Interception\/Interceptor.php:135]\n#39 Magento\\Customer\\Controller\\Adminhtml\\Index\\Edit\\Interceptor->Magento\\Framework\\Interception\\{closure}() called at [vendor\/magento\/framework\/Interception\/Interceptor.php:153]\n#40 Magento\\Customer\\Controller\\Adminhtml\\Index\\Edit\\Interceptor->___callPlugins() called at [generated\/code\/Magento\/Customer\/Controller\/Adminhtml\/Index\/Edit\/Interceptor.php:26]\n#41 Magento\\Customer\\Controller\\Adminhtml\\Index\\Edit\\Interceptor->dispatch() called at [vendor\/magento\/framework\/App\/FrontController.php:186]\n#42 Magento\\Framework\\App\\FrontController->processRequest() called at [vendor\/magento\/framework\/App\/FrontController.php:119]\n#43 Magento\\Framework\\App\\FrontController->dispatch() called at [vendor\/magento\/framework\/Interception\/Interceptor.php:58]\n#44 Magento\\Framework\\App\\FrontController\\Interceptor->___callParent() called at [vendor\/magento\/framework\/Interception\/Interceptor.php:138]\n#45 Magento\\Framework\\App\\FrontController\\Interceptor->Magento\\Framework\\Interception\\{closure}() called at [vendor\/magento\/framework\/Interception\/Interceptor.php:153]\n#46 Magento\\Framework\\App\\FrontController\\Interceptor->___callPlugins() called at [generated\/code\/Magento\/Framework\/App\/FrontController\/Interceptor.php:26]\n#47 Magento\\Framework\\App\\FrontController\\Interceptor->dispatch() called at [vendor\/magento\/framework\/App\/Http.php:116]\n#48 Magento\\Framework\\App\\Http->launch() called at [vendor\/magento\/framework\/App\/Bootstrap.php:261]\n#49 Magento\\Framework\\App\\Bootstrap->run() called at [pub\/index.php:40]\n","url":"\/SiteAdmin\/customer\/index\/new\/key\/3731e4d92c889816ed15e977bc73f597b231b3401cfd470809ffb6fa90d77def\/","script_name":"\/index.php","report_id":"f59617079e64f23216fe7c78f7d97cb8020857b9e2386324734835f0c8ea2605"}
Your errors are self explanatory. Did you read the migration documentation?
I'll try to guide you in the right direction:
As you can see, your old M1 Database contains a lot of extra tables or fields for custom modules. For example:
to mention a few.
Now, from the documentation:
Some Magento 1 entities (in most cases, coming from extensions) do not exist in the Magento 2 database. This message appears because the Data Migration Tool runs internal tests to verify that tables and fields are consistent between source (Magento 1) and destination (Magento 2) databases.
So you either install the M2 versions of the modules, or you tell the migration tool to ignore all the unmapped documents or fields by editing your map.xml file. Read the documentation as to where to configure which map file is used for your magento 1 version.
Then ignore all the fields and tables, for example:
<ignore> <document>addtocart_device</document> </ignore>
and
<ignore> <field>catalogrule.attribute_to_select</field> </ignore>
If tables or fields are called differently in M2, you can rename tables or move fields by using eg:
<rename> <document>sales_flat_quote_item</document> <to>quote_item</to> </rename>
and
<move> <field>catalog_category_entity_varchar.entity_id</field> <to>catalog_category_entity_varchar.row_id</to> </move>
respectively.
--- edit as per comment:
Example error:
[2017-09-06 14:00:06][ERROR]: Source fields are not mapped. Document: sales_flat_order. Fields: onestepcheckout_customercomment,orderfromplatform
Fix:
<ignore> <field>sales_flat_order.onestepcheckout_customercomment</field> </ignore> <ignore> <field>sales_flat_order.orderfromplatform</field> </ignore>
Read more: Importance of migration from Magento 1 to Magento 2