Forum Discussion

gvg's avatar
gvg
Post Prodigy
5 years ago
Solved

Table deleted long time ago not found while refreshing

Hi,

I came up with this strange scenario, when Power BI Desktop is trying to find/refresh table that was deleted long time ago.  It says "Cannot find table 'xxxx'". Even if it "cannot find table" none of my measures have errors, nor any visual is not displayed because of that "missing" table. Has anyone come accross this?

  • OK, thing is that I had a few measures that referred to the deleted table. Surely they were with errors. It looks like Power BI analyzes everything (tables, measures) defined in Desktop and tries to load them alongside what is defined in Power Query. Do not know what is the logic behind this, but that's how Microsoft designed it.

6 Replies

  • Hi gvg 

    Have you refreshed your model after the table was deleted and saved it post that? If yes, then this error should not pop up. If it still persists, go and delete the temp files from the below path:

    C:\Users\ankit\AppData\Local\Microsoft\Power BI Desktop\TempSaves. This would not impact any of your data and files, it would just clear the temp files that is being cached.

    Post that open your pbix file and click on each of your steps in your query and ensure data gets previewed on every step.

     

    Thanks,

    Ankit

    • gvg's avatar
      gvg
      Post Prodigy

      Thanks for the hint. Sure I refreshed my model a number of times. I have now cleared everything from TempSaves and also Cache, but the issue is still there. Strangely enough refreshing in Power Query (Refresh All) goes smoothly without any error message. However when I click Refresh in Power BI Desktop itself, I end up with the above mentioned issue.

      • gvg's avatar
        gvg
        Post Prodigy

        OK, thing is that I had a few measures that referred to the deleted table. Surely they were with errors. It looks like Power BI analyzes everything (tables, measures) defined in Desktop and tries to load them alongside what is defined in Power Query. Do not know what is the logic behind this, but that's how Microsoft designed it.