cancel
Showing results for 
Search instead for 
Did you mean: 

magento 2 import product using excel failed with empty row

magento 2 import product using excel failed with empty row

When I try to import the product by a csv using a excel, below error is displayed:

 

Data validation failed. Please fix the following errors and upload the file again.
Following Error(s) has been occurred during importing process:

1. Product Type is invalid or not supported in row(s): 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21
Checked rows: 21, checked entities: 21, invalid rows: 18, total errors: 18
 
But only 3 rows I have used to input product information.
impiort.PNG
Many thanks!
 
10 REPLIES 10

Re: magento 2 import product using excel failed with empty row

Hello @cheung_hoi ching1 ,

Please remove the extra fields and then try to re-save file with UTF-8 encoding and import again. I hope this will solves your problem.

If it helps you, please accept it as solution and give kudos.

Regards.

Re: magento 2 import product using excel failed with empty row

How to remove the extra rows in excel.

Thanks!

Re: magento 2 import product using excel failed with empty row

@cheung_hoi ching1 
check this link
https://magento.stackexchange.com/questions/265973/import-a-csv-file-in-bo-magento-2
if it help you accept this as solution and give kudos.

Re: magento 2 import product using excel failed with empty row

Please try re-save the file in UTF-8 encoding and then import again. Also make sure that your columns are structured according to Magento 2 import requirements

Re: magento 2 import product using excel failed with empty row

Its work when I copy the first 3 rows to a new excel and import.

But if I enter some word in other rows and then delete it in excel,

the error will display again.

Thanks!

 

Re: magento 2 import product using excel failed with empty row

@cheung_hoi ching1 

This because in excel to csv conversion csv create that an new empty row that's why you het the error so remove that empty row in excel and save again.
If this help you accept this solution and give kudos.

Re: magento 2 import product using excel failed with empty row

@cheung_hoi ching1 

Because it it treating that as a new row and there coulumn value as "" (empty string) which does not pass the magento validation for product. If my answer helps you then please accept it as solution and give kudos. Regards.

Re: magento 2 import product using excel failed with empty row

How to remove the empty rows in excel,

as I have already select other rows and click delete.

Thanks!

Re: magento 2 import product using excel failed with empty row

@cheung_hoi ching1 
https://www.excel-easy.com/examples/delete-blank-rows.html
using this link
If it help accept this solution and give kudos.