99+ WooCommerce Import Errors And How to Fix Them
When you have a task to be solved with import, getting a WooCommerce import error is rather frustrating. It delays your work forcing you to look for a solution or workaround.
In this article, we’ve collected the most typical errors that occur upon using the default WooCommerce product importer. We hope this list will save your time, help you quickly find a working solution, and complete the import successfully.
“Sorry, this file type is not permitted for security reasons” Error
Possible reason #1: An issue in the WordPress core that emerged after the security update in 2018. The fix was added in WordPress 5.0.3 in 2019.
The best solution would be to update to the latest WordPress version. If, for some reason, you don’t want to update to the latest stable version of WordPress, you can try the workarounds offered by a WordPress community:
- Install a plugin which disables MIME Check, for instance, this one - Disable Real Mime Check.
- Upload the file to the FTP and import it from FTP.
- Implement the filter to disable MIME Check by adding a snippet:
- Add the ALLOW_UNFILTERED_UPLOADS constant to the wp-config.php file
add_filter( 'woocommerce_product_csv_importer_check_import_file_path', '__return_false' );
(define( 'ALLOW_UNFILTERED_UPLOADS', true );
Read a detailed guide on how to correct “Sorry, this file type is not permitted for security reasons” error.
Possible reason #2 – permission error when importing HTML.
The error “Sorry, this file type is not permitted for security reasons” may also occur if the import file contains HTML tags. On some servers, this file type can be mis-detected by WordPress. A possible solution offered in the official WooCommerce Product CSV Importer and Exporter documentation is to add this line of code to your wp-config.php file:
define( 'ALLOW_UNFILTERED_UPLOADS', true );
For the security reasons this should be enabled temporarily to perform the import, and then removed from the configuration file.
We advise that you should edit the files / code only if you are sure in your actions. Otherwise, contact your developer. A mistake in the code may lead to the crush of your website.
It is also recommended to make WooCommerce store data backup before the import.
Possible reason #3 - the file type you try to import is not in the allowed list.
There are two ways to add a new permitted file type.
- Enable the ALLOW_UNFILTERED_UPLOADS option in the wp-config.php file:
- Install a WordPress plugin (for instance, WP Add Mime Types) to add needed file type to the allowed list.
define('ALLOW_UNFILTERED_UPLOADS', true);
“Specified file failed upload test” Error
This error message may appear because of several reasons: conflict between plugins, .ini file settings, directory permissions, and others.
To find a solution, try doing the following:
- Deactivate all plugins.
- Switch to the WordPress default theme.
- Deactivate all custom PHP/JS code snippets, and try importing the file again.
- Make sure your php.ini set file_uploads=ON (.ini in different location depending on stack and configuration)
- Make sure your directory permissions are set properly — to 750 or 770.
“Allowed memory size of xxx bytes exhausted” Error
Possible reason: Your server may not have enough memory to perform the import.
Solution: Try increasing the memory limit. If you are not able to do it yourself, there may be some restrictions on the server. In that case, you should contact your hosting provider, and ask them to increase the limit.
“Too Many Redirects” Error
Possible reason #1: Most often, this error is caused by incorrect configuration. WordPress itself uses a form of redirection when it assigns the URLs to your new posts and pages. If another tool is improperly configured or programmed, it can cause a looping effect.
![WooCommerce Error Too Many Redirects](https://woocommerce-manager.com/img/WooCommerce-Error-Too-Many-Redirects.png)
For instance, one of the users on the WordPress support forum reported that he got the “Too Many Redirects” error because the new theme he had installed came with a demo plugin which caused the conflict.
Solutions:
- Disable plugins and try finding the one that causes a conflict.
- Switch to the default theme to perform the import.
Possible reason #2: Improperly assigned URLs.
Solution: Make sure WordPress Address (URL) and Site Address (URL) are the same (with or without www), all lower case, both as http or https.
Possible reason #3: WordPress Memory Limit.
Solution: Go to WooCommerce > Status and check memory limit and available memory.
![WooCommerce Import Error Memory Limit](https://woocommerce-manager.com/img/WooCommerce-Import-Error-Memory-Limit.png)
Other possible reasons and solutions:
- Corrupted or outdated cookies and cache in your browser (try clearing them).
- Cache stored on WordPress (try clearing cache).
- Some variable in your .htaccess file causes the looping effect (try disabling .htaccess file).
“Invalid file type. The importer supports CSV and TXT file formats” Error
Possible reason: CSV file type is in the list of restricted MIME types for your website.
Solution: Look through the list of MIME types and file extensions allowed by WordPress. If CSV file type is not there you should add it to the list.
You can check the allowed and restricted MIME types on your site with these plugins:
If you need to add CSV to the allowed list you can install the WP Add Mime Types plugin.
“Importing post ID Conflicts with an Existing ID” or “Post is not a Product” Errors
Possible reason #1: post ID already exists in the WooCommerce store to which the products are imported.
Solution: Select the “Update existing products” check box if you are updating existing product data.
Possible reason #2: The ID listed in the CSV is not a product ID at the website to which it is imported.
The thing is, WordPress creates unique IDs not just for products, but for orders, comments, categories, pages as well. These entities with their IDs are stored in the WordPress wp_posts table. So when a product with the existing ID is imported, it generates a conflict.
Solution: When you are importing new products leave the ID column unmapped. WordPress will generate unique IDs for the products that don’t have them.
Invalid or Duplicate SKU" Error
Possible reason: product variations whose parent variable products no longer exist in the database still exist for unknown reasons (invisibly) in the database and cannot be seen or reached through the backend user interface.
Solutions:
- Run the “Delete orphaned variations” tool finding it by the following path: Dashboard > WooCommerce > Status > Tools.
- During import, disable the mapping for the “ID” field (By attempting to import and map the (post) ID of your products by default, WooCommerce assumes that the database you’re exporting from and the database you’re importing into were the same databases at some point — which is most probably not the case in your case (and in 99% of all cases).
- Check if all of your products have a SKU. The WooCommerce product import falls back to using the SKUs of the products to map variations to their parent variable products.
- Check if all of your SKUs are unique. SKUs of variations need to be different from their parent products.
“Failed to import products” Error
![WooCommerce Failed to Import Products](https://woocommerce-manager.com/img/WooCommerce-Failed-to-Import-Products.png)
Possible reason #1: there is an unidentified character “�” in the CSV file.
Solution: Check if the CSV file is UTF-8 encoded.
Possible reason #2: product name is missing.
Solution: check whether post_title (product name) is mapped in the import mapping section.
"Import timeout" Error
Possible reason: large import file.
Solution: break your CSV file into chunks for import. Or try increasing memory limit, including WP_MAX_MEMORY_LIMIT and MAX_EXECUTION_TIME.
If you don’t know how to modify these settings yourself, try contacting your web hosting company for assistance.
"Sorry you are not allowed to upload this file type" Error
You may get this error trying to upload a .csv file previously edited in Excel. Here is a typical situation (taken from a forum):
“I’ve exported a .csv of all my products from WooCommerce and opened it in Excel. After making some changes, I saved the file as .csv, but when I attempted to import it, I got an error message "Sorry you are not allowed to upload this file type".
This is a common issue that’s why in WooCommerce import/export documentation it is recommended to “avoid Microsoft Excel due to formatting and character encoding issues.”
Instead of Excel, you can use:
- Google Sheets
- Free spreadsheet app in OpenOffice
- Free Calc app in LibreOffice
- Numbers for macOS
Another Excel alternative is using Store Manager for WooCommerce. The first option is to make necessary edits with a Mass Changer tool and avoid the export-import procedure at all. Here is a detailed tutorial on the bulk WooCommerce product update via Mass Changer.
More advanced edits, though, can be made on the go, right in the process of import. The Store Manager import wizard has a built-in SQL editor where you can add a script. Besides, eMagicOne offers import as a service.
How to Avoid Issues with a CSV File
Most often import would fail because a CSV file is missing some data or contains incompatible data.
What you can do for the successful import:
- Study the WooCommerce CSV import template and Product CSV Import schema.
- Check if there are no extra spaces after column names.
- Data for the column ID and post_id must be empty in the CSV because they are automatically assigned by WordPress.
- Try using lowercase in the main cells (taxable, visibility) as they can be case-sensitive.
Let’s sum up what you can do if WooCommerce import not working
Most often, import issues occur because some plugins or themes turn out to be incompatible with the system. So a common recommendation would be to disable plugins to find out which one causes a conflict and temporarily switch to the WordPress default theme. Also, to avoid accidental unwanted changes it is advisable to backup your data before any CSV import.
Though we tried to assemble in this article as many possible WooCommerce import errors as we could, we acknowledge that the list is not exhaustive and there are other 89 possible reasons why WooCommerce import failed.
If you would face an issue that is not described above please share it in the comments. We will be happy to help you find a solution!
Use Store Manager for WooCommerce for a smooth manual and automated product import!
Trt FREE now!Related Articles:
![Card image](/img/WooCommerce-sorry-this-fyle-type-is-not-allowed-for-security-reasons-error.png)
Fix WooCommerce Import Error “Sorry, this file type is not permitted for security reasons”
There are several reasons why this error may occur. In this article, we will review each reason in detail and offer you proven solutions. Let’s get started! Read More...
![Card image](/img/WooCommerce-Store-Diagnostics-Diagram-and-Chart.png)
How to Speed Up WooCommerce?
We've gathered a couple of effective WooCommerce speed up methods requiring no coding skills. These are the primary measures that should be taken in case of poor WooCommerce performance. Read More...
![Card image](/img/Ways-to-Fix-WooCommerce-Issues-in-WooCommerce-Store-Diagnostics-Tool.png)
WooCommerce Diagnostics – Troubleshoot Store Content Problems
Store Manager for WooCommerce application includes smart WooCommerce diagnostics tool to help you recognize if your store faces the problems that need to be addressed. Read More...
![Card image](/img/WooCommerce-Database-Backup-and-Restore-Wizard.png)
WooCommerce Database Backup/Restore
With the help of Store Manager for WooCommerce it is possible to backup current store database (save it into .sql), restore over current database, and backup multiple stores. Read More...
COMMENTS
I have been allowed to upload the csv file. However, after I clicked the "import" finally, the process always stays in 0% and does not move forward at all (keep waiting over 30 minutes). Have tried tens of times. Always not working.
Hey Joe, have you tried to upload the file via FTP? You can find the instruction in the article.
i am not able to upload csv file. what to do?
Hey, have you tried any of the methods described above? What error do you get trying to upload your .csv file?
Hi, I am trying to upload my csv via wocommerce but after clicking on run importer.
I am getting error of 404 forbidden. How to resolve this issue? I've tried multiple times but still getting the errors.
Hi and thank you for the question.
To know for sure what's causing the error, it's best that you contact your hosting provider and ask them to check your server’s error log. They will be able to see the reason your server is rejecting the import file and most probably give you a solution.
From our side, we'd suggest the following:
- If your file is large, try splitting it into smaller chunks and import them one by one.
- Try importing the file without images.
- Make sure that none of your security plugins(if any) block the import.
- Try importing the file from FTP as described in the article.
- Try importing the file via Store Manager for WooCommerce using the free trial.
I have routinely uploaded product CSV files in the past without issue. Recently when I import new products, they show up as "simple" products rather than "variable" ones even though the tax:product_type maps as "variable". How is it possible for the system to override the information in my database. I have already verified that there are no extraneous spacing in the fields in question and everything is in lowercase.
Hi and thank you for the question. Did you try to import some of the previous files that used to upload correctly? Did you probably upgrade your WooCommerce version? It looks like something has changed after all, though not so obvious. So try analyzing what is can be.
I am using a csv to import orders. I am specifying the total_tax, have tried including tax_items and tax in the line item. When the order is initially uploaded, there is a space next to the item for tax, but it is empty. The total tax appears in the summary, but once the order changes status (on hold to processing, or processing to completed) the total tax disappears from the summary and the order total is recalculated without it 🙁
We have a TaxJar plugin. Is this an issue with my csv or maybe with the plugin?
Hi and thank you for the question. If you're using an import plugin, it's better that you contact the plugin developer. As an alternative, you can try importing orders via Store Manager for WooCommerce. You can follow this guide to import WooCommerce orders.
I want to transfer products from localhost to live website woocommerce and they said "Error getting remote image http://localhost/testasad1/wp-content/uploads/2023/02/63834899.jpg. Error: A valid URL was not provided."
Hi,
You can use Store Manager for WooCommerce to fix this issue if you have localhost on your PC importing images not from URLs but from a folder - 1) at the step of import settings specify the path to the folder with pictures https://woocommerce-manager.com/useful-articles/how-tos/perform-woocommerce-image-import/; 2) use an expression formula to delete "http://localhost/testasad1/wp-content/" https://woocommerce-manager.com/useful-articles/woocommerce-store-manager-tools/mysql-query-for-woocommerce/ (since the localhost links will not be available in the browser).