while importing products in magento2 given feature,my csv has empty values for some columns like gender which are not required case which has to be updated to empty value if empty value exists in CSV file. can anyone suggest me how do this with default magento2 import feature.

  • The attributes shouldn't be required,. If this attributes are required, you should have always an attribute for it. Just change the required of the attribute on your attribute set.
    – ntzz
    Apr 6, 2016 at 9:46
  • @ntzz sorry edited my question
    – chinna
    Apr 6, 2016 at 9:52
  • as far as i understand, if your attribute for example "gender" isn't required, you should could import the product with the column empty. Check the attributes on Stores->Attributes->Products and select gender for example, check it isn't required.
    – ntzz
    Apr 6, 2016 at 9:56
  • @ntzz already made the gender value as not required,but when updated from csv with empty value,its not updating with empty value
    – chinna
    Apr 6, 2016 at 10:00

1 Answer 1


found the solution commented the below line in abstractype file in the model catalog product import. //$rowData = $productTypeModel->clearEmptyData($rowData);

hope this helps other anyone facing the same problem


Your Answer

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

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