Magento CSV Import: How to Configure CSV File Size in Magento 2
While importing a CSV file into Magento 2, you may face the following restriction: the size of your file is more than allowed. Below, we shed light on how to change the file size limit in Magento 2. You will find a step-by-step guide on how to apply a new value to the existing restriction. Besides, we shed light on how to avoid the timeout issue in Magento 2. If you are interested in more tips related to Magento CSV import, view our Developer’s Cookbook.
Table of contents
- 1 How to change CSV file size limit in Magento 2
- 2 How to avoid timeout issues in Magento 2
- 3 How to upload CSV of any size to Magento 2
- 4 Improved Import & Export FAQ
- 4.1 Which data sources does Magento 2 Improved Import & Export support?
- 4.2 Which file types does Improved Import & Export for Magento 2 support?
- 4.3 How to import and export data files in Magento 2 automatically?
- 4.4 How to import data files with third-party attributes to Magento 2?
- 4.5 How to import and export data via ODS files to Magento 2?
- 4.6 How to import and export data via XLSX files to Magento 2?
- 4.7 How to import and export data via XML files to Magento 2?
- 4.8 How to import and export data via JSON files to Magento 2?
- 4.9 How to import data to Magento 2 via compressed files?
- 4.10 How to import data to Magento 2 from Google Sheets?
- 4.11 How to import and export data files between Magento 2 from Dropbox?
- 4.12 How to import and export data files to Magento 2 from Google Drive?
- 4.13 How to import and export data between Magento 2 and external systems via API?
- 5 Final Words
How to change CSV file size limit in Magento 2
Follow these steps to change a CSV file size limit in Magento 2:
- find your php.ini file;
- find the “upload_max_filesize” parameter (additionally, check ‘post_max_size’ too);
- replace the existing value with a bigger one;
- restart your MySQL and Apache server;
- reload import page.
Now, you can import larger files to your Magento website.
How to avoid timeout issues in Magento 2
Increase the execution time to avoid the timeout issue in Magento 2. As long as the server is properly tuned, you won’t have any problem setting the max_execution_time to a higher value.
How to upload CSV of any size to Magento 2
Also, you need to apply several changes to the MySQL configuration to upload a big CSV file to your Magento 2 store. Perform the following steps:
- go to the importexport_importdata table;
- find the ‘max_allowed_packet’ Mysql parameter;
- it should be 1.5 times greater than the size of your import CSV file.
Now, you can upload a CSV file of any size to your Magento 2. At the same time, you can use the Improved Import & Export extension to import heavy data files to Magento 2 without changing any settings. Furthermore, you can use different file formats and transfer data files with data or third-party attributes. Follow this link for further information.
Download / Buy Firebear Improve Import Magento 2 Extension
Improved Import & Export FAQ
Let’s take a look at other nuances of importing and exporting data files to Magento 2 with the help of the Improved Import & Export Magento 2 extension.
Which data sources does Magento 2 Improved Import & Export support?
The module lets you transfer data between your e-commerce store and external systems via direct file uploads, FTP/SFTP servers, Google Sheets, Google Drive, OneDrive, DropBox, direct URL uploads, REST, and SOAP APIs.
Which file types does Improved Import & Export for Magento 2 support?
With the help of our tool, you can move data not only via CSV but also XML, XLSX, ODS, JSON, ZIP, and TAR files.
How to import and export data files in Magento 2 automatically?
If you need to import or export data files between Magento 2 and third parties or other Magento 2 websites regularly, the Improved Import & Export extension lets you use a cron scheduler for automating transfers. Create a schedule of updates and let the module do everything for you.
How to import data files with third-party attributes to Magento 2?
Although Magento 2 blocks the import of third-party data that doesn’t follow its requirements, you can use the Improved Import & Export extension to do that. The module lets you create a mapping scheme where you match third-party attributes and values to the corresponding ones used within Magento 2. You can also apply mapping to export processes to generate any data output your partners require.
How to import and export data via ODS files to Magento 2?
In addition to CSV, Improved Import & Export lets you move data via ODS files. It is unnecessary to convert them to CSV to fit the Magento 2 requirements. You can also export data using this file format.
How to import and export data via XLSX files to Magento 2?
In addition to CSV, Improved Import & Export lets you move data via XLSX files. There is no need to convert them to CSV to fit the Magento 2 requirements. You can also export data using this file format.
How to import and export data via XML files to Magento 2?
In addition to CSV, Improved Import & Export lets you move data via XML files. You don’t need to convert them to CSV to fit the Magento 2 requirements. You can also export data using this file format.
How to import and export data via JSON files to Magento 2?
In addition to CSV, Improved Import & Export lets you move data via JSON files. It is no longer necessary to convert them to CSV to fit the Magento 2 requirements. You can also export data using this file format.
How to import data to Magento 2 via compressed files?
If your data files are compressed, the Improved Import & Export extension also lets you transfer them to Magento 2. Your file archive should be in a ZIP or TAR format. In addition to CSV, our module also supports compressed XML, JSON, ODS, and XLSX files.
How to import data to Magento 2 from Google Sheets?
If data is stored in Google Sheets, it is no longer a problem. The Improved Import & Export lets you move any table stored in Google Sheets to your e-commerce website. It is also possible to export data to Google Sheets from Magento 2 with the help of our module.
How to import and export data files between Magento 2 from Dropbox?
The Improved Import & Export module lets you transfer data tables to Magento 2 from Dropbox and back. You need to use CSV, JSON, ODS, XML, or XLSX tables. If it is a compressed file, it should be in a ZIP or TAR format. You can use this file storage to export data files.
How to import and export data files to Magento 2 from Google Drive?
The Improved Import & Export module lets you leverage Google Drive to transfer data files between Magento 2 and external systems. Use CSV, JSON, ODS, XML, and XLSX files that can be compressed in a ZIP or TAR format.
How to import and export data between Magento 2 and external systems via API?
With the Improved Import & Export extension, you can create API connections to transfer data between your e-commerce website and external systems via bi-directional data transfers. The module’s import/export jobs provide an interface where you can specify the parameters necessary to sync the two systems.
Final Words
Now you can improve your Magento CSV import routine by increasing the maximum CSV file size and avoiding the timeout issue in Magento 2. Contact our support to get more information on the enhanced import and export processes in Magento 2 and Adobe Commerce and get your Improved Import & Export extension to simplify your daily data transfer routine:
Get Improved Import & Export Extension