Power Query Problems

Fix Power Query Importing Only 255 Columns from Excel Workbook

Huma Ashraf ChHuma Ashraf Ch Nov 2, 2026 870 views

Question details

The user needs to resolve an issue where Power Query fails to load all columns from an updated source file.

Fix Power Query Importing Only 255 Columns from Excel Workbook
Product
Microsoft Excel
Device & OS
not provided
Scenario
Replacing a source XLSX file for Power Query with a newly downloaded file of the same name without opening it first.
Observed behavior
Power Query truncates the data load, importing only 255 columns instead of the full 451 columns present in the source file.
Before you start

Before applying these fixes, ensure you have a backup of your original dataset and verify that the newly downloaded source file actually contains all the expected columns.

Solution 1Recommended

Open, Enable Editing, and Save the Replacement File

Files downloaded from the internet are typically locked in Protected View, which restricts Power Query from properly reading all file metadata and columns.

When you download a replacement file from the internet, Microsoft Excel automatically places it in Protected View for security reasons. If you attempt to use this file directly as a Power Query source by just renaming it, the query engine may revert to legacy limitations (like the 255-column limit) because it cannot fully access the workbook's internal XML structure. Initializing the file by opening and saving it removes this barrier.

1
Open the Downloaded File

Navigate to the folder containing your newly downloaded replacement XLSX file and open it in Excel.

2
Enable Editing

Look for the yellow Protected View warning banner at the top of the screen and click the 'Enable Editing' button.

3
Save the File

Press Ctrl + S or go to File > Save to apply the changes and initialize the file's structure. You can then close the file.

4
Refresh Power Query

Open your main workbook containing the Power Query connection, go to the Data tab on the ribbon, and click 'Refresh All'.

Open, Enable Editing, and Save the Replacement File
Quick Tip: Always perform this open-and-save initialization step for any raw datasets downloaded from external websites before attempting to refresh your data models.
Free Microsoft Office alternative

Handle Complex Datasets with WPS Office

If Microsoft Excel's Power Query limits and Protected View issues are frequently disrupting your workflow, consider switching to WPS Office. It provides a highly compatible, robust environment for managing massive datasets without unnecessary feature blocks.

  1. 1. Download and Install: Get WPS Office for free from the official website and install it on your device in minutes.
  2. 2. Open Your Spreadsheet: Launch WPS Spreadsheets and open your downloaded .xlsx or .csv dataset directly without complex import steps.
  3. 3. Analyze and Process Data: Use built-in data processing tools to sort, filter, and analyze hundreds of columns without arbitrary limitations.
Seamlessly compatible with Microsoft Excel .xlsx and .csv file formatsEasily open, edit, and save large datasets without legacy column limitsLightweight application that runs smoothly on almost all devicesCompletely free to use with a familiar, easy-to-navigate user interface
microsoft office alternative - wps office

Frequently Asked Questions

Why does Power Query stop exactly at 255 columns?

Historically, older Excel formats (.xls) had a hard structural limit of 255 columns. When Power Query encounters a file locked in Protected View or lacking proper metadata initialization, it may mistakenly process the file using legacy drivers, triggering the 255-column cutoff.

Do I always have to open and save downloaded files before using Power Query?

Yes, files downloaded from the internet usually open in Protected View to prevent malicious code execution. Power Query cannot always read the complete internal structure of a file in Protected View, resulting in truncated columns or import errors. Saving the file removes this restriction.

How can I bypass the 255-column limit when importing CSV files?

When importing CSV or Text files, ensure the delimiter is set correctly and the file encoding is recognized in the Power Query Editor. Because text files do not carry the legacy XLS structural limitations, importing them directly usually loads all columns successfully.

Can I automate the process of enabling editing and saving?

Yes. You can use VBA macros or Power Automate Desktop scripts to automatically open, save, and close downloaded files in the background. This removes the Protected View restriction automatically before Power Query attempts to refresh the data.