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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
drgenius
Frequent Visitor

Dataset Workload Import Error After Switching from Direct Query to Snowflake Import Model

Hi everyone,

 

I have a Power BI report that I want to publish to my Fabric workspace.

When I try to upload it, I get the following error: Dataset Workload failed to import the dataset with dataset id 7894a0d1-f8c2-4a33-9881-f41f76fe081b. Neither 'model.bim' nor anything with 'definition/.tmdl' were found.*

 

Some context: this report was originally built using Direct Query. I have since migrated it to use Import mode with a Snowflake connection (pulling from Snowflake tables instead). Despite this change, the definition folder appears to be empty, which I believe is the root cause of the error. My questions are: Is this a known issue when switching a report from Direct Query to Import mode? Could the semantic model definition not have been regenerated properly during that transition? Is there a way to fix this without rebuilding the report from scratch? For example, by republishing in a way that forces the model.bim or definition/*.tmdl files to be recreated? 

 

Any guidance would be appreciated.

 

Thanks in advance!

1 ACCEPTED SOLUTION
Ritaf1983
Super User
Super User

Hi @drgenius 

This error typically occurs because the model's metadata (model.bim or the definition folder) was not packaged correctly during the transition from Direct Query to Import mode. This is a known local state-saving issue, and you do not need to rebuild the report.

To resolve this, you can force Power BI to regenerate the missing semantic model definitions using one of the following methods:

First, if you are uploading the file manually via the Fabric web interface, try using the 'Publish' button directly from Power BI Desktop. This forces a recompilation and repackaging of the file.

If that fails, force a metadata rewrite by opening the file in Desktop, making a minor model change (like adding a blank measure), and using "Save As" to save it as a Power BI Project file (.pbip). This forces the engine to recreate the folder structure, including the missing definition folder.

Alternatively, navigate to File -> Options and settings -> Options -> Preview features. Toggle the "Store semantic model using TMDL format" setting (turn it on if it is off, or vice versa), restart Power BI Desktop, and save the file again to trigger the metadata generation.

Finally, if you are in a Fabric or Premium workspace, you can bypass the PBIX upload mechanism entirely. Open the local file, connect to the model using an external tool like Tabular Editor, and deploy the model directly to the Workspace via the XMLA Endpoint.

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

4 REPLIES 4
Kedar_Pande
Super User
Super User

@drgenius 

 

Open PBIX in Desktop, File > Save As > Power BI Project (.pbip). This regenerates model.bim and TMDL files from scratch.

DirectQuery to Import mode transition corrupts semantic model metadata. PBIP forces full rebuild. Then publish normally.

MFelix
Super User
Super User

Hi @drgenius ,

 

Is this a thing report connected to a semantic model on the service or a report that as the semantic model in the same file?

 

Looking at the description that you reference that the definition folder appears to be empty I believe that you are refering to a report that is connected to the published model and not has the semantic model attach to it, and also that you are saving it has a PBIP file.

 

If you are connecting to an online semantic model my suggestion is the following:

  • Make a backup of your report
  • Create a new report connected to the semantic model online (can be a blank report)
  • Copy the the folder for the semantic model to the folder of the report that is having the problem

This will make the connections to be change to the new model.


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português





Ritaf1983
Super User
Super User

Hi @drgenius 

This error typically occurs because the model's metadata (model.bim or the definition folder) was not packaged correctly during the transition from Direct Query to Import mode. This is a known local state-saving issue, and you do not need to rebuild the report.

To resolve this, you can force Power BI to regenerate the missing semantic model definitions using one of the following methods:

First, if you are uploading the file manually via the Fabric web interface, try using the 'Publish' button directly from Power BI Desktop. This forces a recompilation and repackaging of the file.

If that fails, force a metadata rewrite by opening the file in Desktop, making a minor model change (like adding a blank measure), and using "Save As" to save it as a Power BI Project file (.pbip). This forces the engine to recreate the folder structure, including the missing definition folder.

Alternatively, navigate to File -> Options and settings -> Options -> Preview features. Toggle the "Store semantic model using TMDL format" setting (turn it on if it is off, or vice versa), restart Power BI Desktop, and save the file again to trigger the metadata generation.

Finally, if you are in a Fabric or Premium workspace, you can bypass the PBIX upload mechanism entirely. Open the local file, connect to the model using an external tool like Tabular Editor, and deploy the model directly to the Workspace via the XMLA Endpoint.

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Hi @Ritaf1983,

 

Thank you very much for your help!!
I managed to fix it with this suggestion

"Alternatively, navigate to File -> Options and settings -> Options -> Preview features. Toggle the "Store semantic model using TMDL format" setting (turn it on if it is off, or vice versa), restart Power BI Desktop, and save the file again to trigger the metadata generation."

Helpful resources

Announcements
Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.