3

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

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

  • Yes, i have removed the custom attributes from my CSV and its works. Thanks !!!!! – Sunny Rahevar Jan 5 '18 at 7:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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