I am working on CSV import to create a custom option for Products I am facing the issue with the error

Notice: Undefined index: type in /var/www/html/home/vendor/magento/module-catalog-import-export/Model/Import/Product/Option.php on line 1134

enter image description here

I already created Products (Configurable products)

I want to add a custom option to them I am importing my sample CSV link below csv link

  • what M2 version are you using?
    – Radu
    Apr 17, 2019 at 20:08

2 Answers 2


Maybe you can first try to generate a csv file using the export feature and then use it for import? This way will make sure you have all fields.


I had this issue on a Magento 2.2.3 site that had been edited to use pipe character ( | ) as a multiple value separator instead of comma ( , ). I changed it back to comma to get around the issue.

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.