Fix encoding and delimiter issues
Diagnose a CSV file that imports wrong (garbled accents, one giant column, a title row) and fix it with the CSV Parser's Parser settings.
Your events team comes back from a trade show in Lyon with the badge-scanner export. The file opens fine in Excel, but in the flow the names read Zo� Lef�vre and every column is squeezed into one. Nothing is wrong with the leads: the file was saved by Excel on a European laptop, with semicolons and without UTF-8.
This page shows how to find out what is wrong with a file and which setting of the CSV Parser fixes it, before anyone imports a single lead.

Before you start
A screen flow with a CSV Parser on a screen. If you have not built one yet, start with Import a CSV file in a screen flow.
The file that causes the problem, saved on your computer. Diagnose with the real file, not a clean sample.
The file must have the
.csvextension. The upload button only accepts.csvfiles, so an.xlsxworkbook cannot be picked: save it as CSV from Excel first.
Here is the file used on this page. In the original it is semicolon-separated and saved in Western European encoding (ISO-8859-1), which is what Excel's plain "CSV" format often produces on a French, German or Spanish computer:
Steps
Open the Component Builder and turn on the two checks
In Flow Builder, open the screen and select the CSV Parser on it.
In the panel on the right, click Open Component Builder. The Edit CSV Parser Component window opens with a live preview on the left and the settings on the right.
In the Properties tab, turn on Show Row Count and Show Preview.
Show Row Count prints the number of data rows the component read, for example Found 5 rows. Show Preview adds a Preview section (collapsed at first: click it to open) with the first three rows, already converted to the Salesforce fields they are mapped to. Together they tell you whether the file was read correctly.
Upload the problem file in the preview
In the preview, click Upload Files and pick the file. The preview behaves like the real component: you see the Mapping section with each column header, the first values of that column under it, and the row count.
Compare what you see with the file:
The row count matches the number of data rows (the header row is not counted, empty lines are skipped).
Each column of the file appears as its own header in Mapping.
The sample values under each header read correctly, accents included.
If one of these is off, find the symptom in What you see and what fixes it below.
Change one Parser setting
Scroll to the Parser group in the Properties tab. Click it to expand it if it is collapsed: a group that already holds values opens by itself. Change only the setting that matches your symptom, for example Encoding or Delimiter. To force a separator, type it in Delimiter; use Delimiters To Guess to narrow the candidates the parser tries when Delimiter is blank.

Upload the file again
The component reads the file at the moment it is uploaded, so a new setting has no effect on a file already in the preview. Upload the same file again and check the three points of step 2 one more time.
If it is still wrong, undo that change before you try the next one. Two settings changed at once make it hard to tell which one fixed the file.
Save and test
Decide whether your users should keep seeing the row count and the preview. Both are useful on a real import screen; turn them off if you prefer a shorter screen.
Click Done, save the flow and run it with the real file.
The screen shows the same result as the preview: accents readable, one header per column, and the row count matching the file.
What you see and what fixes it
Related tutorials
Import a CSV file in a screen flow: build the import screen this page troubleshoots.
Pre-map CSV columns for a recurring import: once the file reads correctly, map headers such as "First Name" that do not match a field on their own.
Import a file stored in Salesforce: read a CSV already in Salesforce Files with File Value.
CSV Parser: every setting of the component.
Last updated
Was this helpful?

