I had exported customer from local machine and i am importing on server. When i tried to import on server it gives me an error saying "Sorry, but the data is invalid or the file is not uploaded."

I have not changed anything on in the csv file, both database of live and local are same, only on local i have new customers.

2 Answers 2


Download csv from live server & match its structure with local their should definitely difference between the structure of fies.


The problem was with the PHP version. We were running Magento 2.2.6 on PHP 7.2 version. I had to change certain line on code in vendor directory.

  • any chance you remember what you changed?
    – willboudle
    Feb 12, 2020 at 18:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.