New versions of the Data Loader (version 28+) do not support files encoded using UTF-8 BOM(BYTE ORDER MARK) format and will generate the following error:
"CSV Error: Invalid CSV file format. Please select a different file. Error getting header row from the CSV file"
UTF-8 BOM (Byte Order Mark) is a hidden character sequence (represented as ) that some applications add to the beginning of a UTF-8 encoded file. Data Loader version 28+ does not support files containing a BOM.
Note: Depending on your text editor or Excel settings, you won't be able to see the BOM character.
To determine whether or not your file contains a BOM character, use W3C Internationalization Checker.
Also, If you open the csv file in Notepad on Windows, you can confirm the encoding used at the bottom right on the status bar.
Once your CSV file is saved without BOM, you'll be able to load it with Data Loader v28+.
Note: If you're using an external DB or Application, refer to the third party documentation for instructions for how to save a CSV file without BOM.
If you still receive the error after saving the csv file with UTF-8 encoding without BOM, please Contact Salesforce Customer Support .
Please see W3C standards for more information. The W3C also provides suggestions on creating perl script to automatically remove BOM.
Custom solutions which automatically remove BOM aren't supported by Salesforce Customer Support.
There are times when converting a csv file using the Unicode method does not work and Users may encounter the error:
"Invalid CSV file format. Please select a different file. Error reading row #: the number of data columns exceeds the number of columns in the header."
Note: The error usually occurs in European countries, due to PC regional settings where a semicolon is used as a delimiter.
Insert, Update, or Delete Data Using Data Loader
Convert your spreadsheet into CSV format
Replace semicolons with commas in CSV data imports
000383918

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.