I'm trying to import customers to a Magento 2 website. Data validation is OK (File is valid! To start import process press "Import" button), but when I click on import button, page gets stuck on please wait loader and I get error :
POST > https://www.my-domain.com/administration/admin/import/start/key/8adc97…ad82c7953b3d1041f73b2365f8354... 500 (Internal Server Error) validation.min.js:6
I also tried to export / import existing customers (3) to be sure I did not have wrong data in my csv or too many customers.
I'm using Magento 2.1.7 on a dedicated Linux server.
I can't find what could be wrong here, any idea ?
Solved! Go to Solution.
I checked the server error log and I have :
mod_fcgid: stderr: PHP Fatal error: Uncaught Error: Call to a member function getBackendModel() on null in /var/www/vhosts/my-domain.com/httpdocs/vendor/magento/module-customer-import-export/Model/Import/Customer.php:390, referer: https://www.my-domain.com/administration/admin/import/index/key/c3b34d750a8a8496c752b5abd2cae55bf803...
The problem came from 2 custom attributes I created, one was fine created following :
The other created directly in database with phpmyadmin was causing the issue, I forgot to add the attribute in entity_attribute_id.