How to fix it
- Open the file and check that there are product rows under the header.
- Save it as "CSV UTF-8" from your spreadsheet program.
- If your file is in another encoding on purpose, choose it under "Show advanced options", then "Character encoding of the file", on the upload screen.
Example
A file with this problem
Type,SKU,Name,Regular price
What the checker says about it
- Line 1: The file has a header row but no products. WooCommerce shows "The file is empty or using a different encoding than UTF-8, please try again with a new file."
Once the listed rows are fixed, check the file again; the checker also looks for the other problems in WooCommerce's import code, so you do not trade one error for the next.
Other WooCommerce import errors
- Sorry, you are not allowed to upload this file type.
- Invalid file type. The importer supports CSV and TXT file formats.
- The uploaded file exceeds the upload_max_filesize directive in php.ini.
- A product with this SKU already exists.
- A product with this ID already exists.
- Invalid product type.
- All checks
Sources
- WooCommerce 11.2.2 source: class-wc-product-csv-importer-controller.php: https://github.com/woocommerce/woocommerce/blob/11.2.2/plugins/woocommerce/includes/admin/importers/class-wc-product-csv-importer-controller.php
- WooCommerce 11.2.2 source: class-wc-product-csv-importer.php: https://github.com/woocommerce/woocommerce/blob/11.2.2/plugins/woocommerce/includes/import/class-wc-product-csv-importer.php
Based on WooCommerce 11.2.2's import code and documentation. Not tested on a live store.