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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
mrbuttons07
Helper II
Helper II

Expression.Error: The Column 'Column X' of the Table wasn't Found

Hello everyone,

I established a connection from an excel workbook to a master excel workbook. I received the error as above stating that the the table was not found. The issue here is that the table does appear and is needed in both excel workbooks. 

 

error.PNG

 

I notice that this issue appears when I open both files together at the same time. Also, when I update any information in the workbook, the error appears as well.

 

I made some research about this issue and all goes to the same solution, which is to remove the error column. It doesn't work as it prompts another error stating that 'Column Y' was not found. Let me know if there are any other solutions that I can try with. Thanks again!

1 ACCEPTED SOLUTION
Jimmy801
Community Champion
Community Champion

Hello @mrbuttons07 

 

in my experience this is coming from a hardcorded part of your query. Maybe the datasource changed (most probably) and therefore your query is running into this issue (example: power query reads the usedrange of a sheet. So maybe at a startingpoint the usedrange was very big - even without data. You registered your query without thinking about this isse. Then somebody fixed the Excel-file and now you have problems with the query.)

 

Hope this helps


Jimmy

View solution in original post

4 REPLIES 4
Jimmy801
Community Champion
Community Champion

Hello @mrbuttons07 

 

in my experience this is coming from a hardcorded part of your query. Maybe the datasource changed (most probably) and therefore your query is running into this issue (example: power query reads the usedrange of a sheet. So maybe at a startingpoint the usedrange was very big - even without data. You registered your query without thinking about this isse. Then somebody fixed the Excel-file and now you have problems with the query.)

 

Hope this helps


Jimmy

You are right, Jimmy. The data source that I have changes frequently time to time and therefore the issue appears. I made a quick investigation based upon the data source. 

Thanks for your feedback, Jimmy.

Hello @mrbuttons07 

 

thanks for the feedback.

So the only way to get around such an issue is to write your queries dynamically, and due that prevent any hardcoded columnnames. It's not always possible, but for sure you are able to handle a lot of issues with that.

 

BR

 

Jimmy

rajulshah
Super User
Super User

Hello @mrbuttons07,

 

You can move to 'Source' step in Query Editor and see which columns are present and which of them are absent.

 

You can thus see which columns exist in Excel.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors