Power Query Problems

How to Fix Power Query Truncating Text at 255 Characters

Adam DavisAdam Davis Oct 26, 2026 868 views

Question details

The user needs a solution to prevent Power Query from cutting off long text strings at 255 characters when extracting data from another file.

How to Fix Power Query Truncating Text at 255 Characters
Product
Microsoft Excel (Power Query)
Device & OS
not provided
Scenario
Using Power Query in a workbook to extract data from a table stored in another workbook that is currently open.
Observed behavior
Long text fields load correctly when copied and pasted manually, but are truncated to exactly 255 characters when loaded via Power Query from the external open workbook.
Before you start

Ensure the source workbook containing your data is completely saved and closed before refreshing your query, as leaving it open forces Excel to use a legacy data driver that causes this limitation.

Solution 1Recommended

Format Data as a Structured Table and Close Source File

Converting the source range to an official Excel Table and explicitly setting the column type helps the query engine accurately interpret string lengths.

When querying another workbook that is currently open, Excel relies on legacy background drivers that sample the first few rows of data. If the driver does not immediately detect long text, or if the file is locked for editing, it applies a default 255-character limit to the column.

1
Convert source data to a Table

Open the source workbook, highlight your entire data range, and press Ctrl+T to convert it into a structured Excel Table.

2
Format the column as Text

Select the specific column containing the long text, right-click, choose 'Format Cells', and set the category to 'Text'.

3
Save and close the source file

Save your changes and completely close the source workbook so it is no longer locked.

4
Refresh Power Query

In your destination workbook, open the Power Query Editor, verify that the column data type is explicitly set to 'Text', and click 'Close & Load' to refresh the data without truncation.

Format Data as a Structured Table and Close Source File
Data Type Verification: Setting data types at both the source level and inside the Power Query Editor ensures the most reliable data extraction.
Free Microsoft Office alternative

Experience Smooth Data Handling with WPS Office

Tired of encountering complex query limitations and unexpected data truncation? WPS Office provides a highly compatible, fast, and free alternative to Microsoft Office. Manage your spreadsheets seamlessly and enjoy robust data processing without the heavy subscription fees.

  1. 1. Download WPS Office: Visit the official WPS website to download and install the free software suite.
  2. 2. Open your files: Launch WPS Spreadsheets and directly open your existing Excel workbooks with zero formatting loss.
  3. 3. Process your data: Use built-in data handling tools to filter, sort, and analyze your text-heavy datasets without unexpected truncation.
100% compatible with Microsoft Excel formats (.xlsx, .xls, .csv)Lightweight application that opens large datasets instantlyAdvanced data filtering and comprehensive pivot table capabilitiesFree to use with a familiar, easy-to-navigate user interface
microsoft office alternative - wps office

Frequently Asked Questions

Why does Excel Power Query limit text to exactly 255 characters?

This issue is caused by legacy OLE DB or ODBC drivers used by Excel in the background. If the source file is open, the driver falls back to an older compatibility mode that caps string fields at 255 characters to save memory, especially if the first few rows sampled don't contain longer text.

Does closing the source workbook always prevent text truncation?

In most cases, yes. When the source Excel file is completely closed, Power Query can use a different, more modern extraction method that bypasses the 255-character restriction imposed on open files.

How can I force Power Query to recognize long text strings?

You can help the query engine by organizing your source data into a structured Excel Table (Ctrl+T) and explicitly defining the column's data type as 'Text' within the Power Query Editor before applying the 'Close & Load' step.

Where can I get advanced help for complex Power Query errors?

Because Power BI shares the exact same Power Query engine as Microsoft Excel, the Microsoft Power BI Community forums are highly recommended for advanced troubleshooting and specialized query issues.