KNOWLEDGE BASE

Connecting to a CSV File the Layout of the Imported Data is Incorrect


Published: 05 Jul 2022
Last Modified Date: 09 Dec 2022

Issue

When connecting to a CSV file having columns that contain line-feed codes, the layout of the imported data is incorrect.

Environment

  • Tableau Desktop
  • Excel

Resolution

To handle data containing line-feed codes in CSV format, follow the steps below.

1. When preparing CSV files, columns containing line-feed codes should be enclosed in a text qualifier such as double quotation marks (").
2. Open Tableau Desktop and select the Text file connector and connect to the CSV file.
3. On the canvas, click the table drop-down arrow and select Text File Properties.
4. Change Text qualifier as you need.

Cause

Some of the columns contain line-feed codes.
Did this article resolve the issue?