Fatal error : Call to a member function getBackendModel() on null in app/code/core/Mage/ImportExport/Model/Import/Entity/Customer.php on line 425 M-1
-
25-12-2020 - |
Question
I got error while importing the customer using CSV in the admin.
Solution
Magento checks all attributes in the CSV file before importing. And if there are some attributes that are either not assigned to attribute set or have no backend model defined, then Magento throws an error like the error which you are getting.
You need to make sure that your custom customer attributes are assigned to a set. Otherwise, the following code will remove your attributes from the array which will trigger the above error during the import:
app/code/core/Mage/Eav/Model/Entity/Abstract.php
if (!$attribute->isInSet($setId)) {
unset($attributes[$code]);
}
Please let me know if it helped.
Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange