Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
ChrisAZ
Helper V
Helper V

Removed column from table and now getting error

I am unclear on how I can remove a column from a CSV source file location without getting this error? I know it is looking for that column based on my initial import, but what is the process for adjusting this if I need to remove a column after the fact without deleting the data source and having to set it up for import all over again? This could cause all my relationships and everything else to have to be recreated.

Screenshot 2025-02-06 133535.png

1 ACCEPTED SOLUTION
anilelmastasi
Super User
Super User

Hi @ChrisAZ ,


1. Open Power Query Editor
In Power BI Desktop, go to Home → Click Transform Data (to open Power Query Editor).
Find the query that loads your CSV file.
2. Identify and Remove the Broken Step
In Power Query Editor, check the Applied Steps pane on the right.
Look for the step where the missing column was referenced (likely under "Changed Type", "Removed Columns", or "Renamed Columns").
Click on that step—Power BI will show an error like "The column Operator was not found".


Either remove that step or modify it to exclude the missing column. (You can send the M code of that step, if you have still problem.)


3. Refresh the Query
Click Close & Apply to save the changes.
Try refreshing the dataset.

View solution in original post

2 REPLIES 2
anilelmastasi
Super User
Super User

Hi @ChrisAZ ,


1. Open Power Query Editor
In Power BI Desktop, go to Home → Click Transform Data (to open Power Query Editor).
Find the query that loads your CSV file.
2. Identify and Remove the Broken Step
In Power Query Editor, check the Applied Steps pane on the right.
Look for the step where the missing column was referenced (likely under "Changed Type", "Removed Columns", or "Renamed Columns").
Click on that step—Power BI will show an error like "The column Operator was not found".


Either remove that step or modify it to exclude the missing column. (You can send the M code of that step, if you have still problem.)


3. Refresh the Query
Click Close & Apply to save the changes.
Try refreshing the dataset.

Thank you. I was able to get my input file set to match with the same column again for now so it is not giving that error, but I am hopeful this will be useful if/when I do run across this again as I feel like it is not that uncommon to have to adjust a column, remove, etc. from time to time, and I will be able to reference back to this if needed at that time!

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors