I got error while importing the customer using CSV in the admin.
-
Have you created any custom customer attribute?– Mohit Kumar AroraJan 5, 2018 at 6:28
-
yes, i have created 2-3 custom customer attributes.– Sunny RahevarJan 5, 2018 at 6:32
-
1For testing purpose, try importing the csv without those custom attributes.– Mohit Kumar AroraJan 5, 2018 at 6:36
-
1If you are able to import the csv file without custom attributes, then there are chances that one or more custom attributes are not assigned to attribute set. You may need to fix that attribute.– Mohit Kumar AroraJan 5, 2018 at 6:38
-
Have you checked the import process without custom attributes?– Mohit Kumar AroraJan 5, 2018 at 7:14
1 Answer
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.
-
Yes, i have removed the custom attributes from my CSV and its works. Thanks !!!!! Jan 5, 2018 at 7:23