Skip to main content

TABLEAU / TEXT FILE

Fix Tableau CSV encoding and separator before connecting

If Tableau puts an entire CSV row into one field, open the text file connection and inspect its separator. When the columns already line up but a customer name is unreadable, change the character encoding and compare the same row.

Published:

Updated:

Related tool: Convert encoding & format

Choose the separator and encoding that describe the file

If Tableau displays one wide field, or text becomes unreadable, compare the file's actual separator and encoding with the connector settings. Do not solve a header mismatch by changing the data values.

  • A regional list separator changes the number of columns
  • UTF-8, UTF-16LE, or a legacy code page produces different text
  • A header is treated as data or a data row as a header

Use the workbook connection as the contract

Pick a product described as “Crème, 50 ml”. In a comma-separated file, the quotes keep that comma inside the description. Check the next field as well as the accented letter.

  • Check whether the first row is a header in the source
  • Keep quoted separators and line breaks inside their fields
  • Do not convert numeric IDs to numbers when leading zeroes matter

Create a Tableau-ready copy

The conversion only changes the selected file format. Tableau calculated fields, extracts, and data types remain destination-side decisions.

  1. Run CSV diagnosis on a copy of the source export
  2. Select the real input encoding and separator from the preview
  3. Convert to the encoding and delimiter used by the Tableau connection
  4. Connect a small file and compare the first, middle, and last rows
Convert CSV

Check the Tableau preview and refresh path

  • In Tableau’s data preview, confirm that the description and its neighboring field match the original row. Then compare the field names and count with the existing worksheet’s source.
  • Text containing commas, quotes, or newlines remains one field
  • The row count matches the source after any intentional filtering
  • The workbook refresh uses the same output file and encoding each time

If a worksheet still shows wrong values

Inspect Tableau's field type and calculated-field steps. A correct CSV cannot decide whether a date should be local time or UTC, or whether an ID is a measure.

Prepare the Tableau text file

Official documentation

Limits and import formats can change. Use the official documentation below as the final check for your account and plan.