3

I got error while importing the customer using CSV in the admin.

5
  • Have you created any custom customer attribute? Jan 5, 2018 at 6:28
  • yes, i have created 2-3 custom customer attributes. Jan 5, 2018 at 6:32
  • 1
    For testing purpose, try importing the csv without those custom attributes. Jan 5, 2018 at 6:36
  • 1
    If 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. Jan 5, 2018 at 6:38
  • Have you checked the import process without custom attributes? Jan 5, 2018 at 7:14

1 Answer 1

1

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.

1
  • Yes, i have removed the custom attributes from my CSV and its works. Thanks !!!!! Jan 5, 2018 at 7:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.