cancel
Showing results for 
Search instead for 
Did you mean: 

Export Magento 2.1.x Please correct the data sent value (Export)

Export Magento 2.1.x Please correct the data sent value (Export)

Exporting products Magento 2.1.x Please correct the data sent value (Export)

FIX if your php.ini or .user ini has, the memory set with a capitol letter, memory_limit = 2048M not 2048m

or 1024M not 1024m the error will occur because they have not set the case for uppercase in the catcher. 

 

Error 

Changed line 773 to 

 

/public_html/vendor/magento/module-catalog-import-export/Model/Export/product.php

 

protected function getItemsPerPage()
{
if ($this->_itemsPerPage === null) {
$memoryLimit = trim(ini_get('memory_limit'));
$lastMemoryLimitLetter = strtolower($memoryLimit[strlen($memoryLimit) - 1]);
switch ($lastMemoryLimitLetter) {
case 'g':
$memoryLimit *= 1024;
// fall-through intentional
case 'M':  // fixed the problem in my case.
$memoryLimit *= 1024;
// fall-through intentional
case 'k':
$memoryLimit *= 1024;
break;
default:
// minimum memory required by Magento
$memoryLimit = 250000000;

 

this solved the problem and exported correctly.

1 REPLY

Re: Export Magento 2.1.x Please correct the data sent value (Export)

Hi @JWL2017,

 

Maybe you wnat to create an issue in GitHub: https://github.com/magento/magento2/issues

 

Or even better you can create a PR.

--
If you've found one of my answers useful, please give "Kudos" or "Accept as Solution"