Magento Customer Import sometimes throws an error:
“Fatal error: Call to a member function getBackendModel() on a non-object in app/code/core/Mage/ImportExport/Model/Import/Entity/Customer.php on line 411”
If you encounter the same problem, 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:
[php firstline=”554″ title=”app/code/core/Mage/Eav/Model/Entity/Abstract.php”]
if (!$attribute->isInSet($setId)) {
unset($attributes[$code]);
}[/php]
unset($attributes[$code]);
}[/php]
how to check whether custom customer attributes are assigned to a set or not.
You would need to check this table eav_entity_attribute for more info.