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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Julia_Mav
Helper II
Helper II

The model doesn’t have a table named…

Hi,

I have an error like this (please see attached). In my model, I do not have the table named liked Comparison Data Old 2. I only have Comparison Data Old (without a number). What should I do to fix it?

 

Thanks for your help!

4B10D6A6-A4A6-4846-9B86-B526826C1319.jpeg

2 REPLIES 2
Joris_NL
Helper II
Helper II

I had a similar problem and found the solution.

 

After an update in our database, I had to rename all my tables from ALL-CAPS to Normal-Caps. So following your example, I changed 'COMPARISON DATA OLD' to 'Comparison Data Old' - and renamed all corresponding query steps, column names etc. When trying to apply the query changes, I got the following error:

 

The model doesn't have a table named Comparison Data Old 2.

 

Even though the query didn't mention 'Comparison Data Old 2', and never did. I double checked this by copying the query to Word (or NotePad) and searched ctrl+f. No 'Comparison Data Old 2' ever existed in my entire file. Why it asked for number 2, I never found out, but I did find a solution.

 

First I added a new table, called 'Comparison Data Old 2'. This resulted in the error message saying:

 

The model doesn't have a table named Comparison Data Old 2 2.

 

So that wasn't going to work. The solution, however, was to change the name of the original 'Comparison Data Old' table to 'Comparison Data Old 2'.

 

This solved the issue and everything worked again - although I had to repeat this step for all other tables. Funnily enough, after applying the query changes I could change the name 'Comparison Data Old 2' back to 'Comparison Data Old' as if nothing ever happened.

 

Most software doesn't allow for multiple files with the same name, irrespective of caps. So when changing COMPARISON DATA OLD to Comparison Data Old, it might make a copy (number 2) behind the screens. Together with a database update, this might mess things up. But it's only a guess. 


Hope this helps for future troubleshooting!

 

Joris

Greg_Deckler
Super User
Super User

@Julia_Mav Looks like some query is referencing Comparison Data Old 2 so you will have to look at your queries and find which one of them has that reference (looks like 2 of them at least)



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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