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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
DraMat
Regular Visitor

Changing data source using TMDL but changes not transfering

Hello, so I have these two big reports that were connected to SQL database but then the data switched to MDB. Naturally I wanted to use TMDL because it is easier to make bulk changes. I switched all the SQL data sources to MDB ones. In one report I managed somehow to transfer these changes and the report works. But with the bigger one it doesn't work.

After changing the data source I open the .pbip file to load the changes but I am greeted with yellow 2 messages: One is the usual "Apply changes" and the other one "One or more tables contain no data want to load?". Whenever I try applying either of them PBI starts loading the SQL database which doesnt exist. When I open PowerQuery through transform data I can see in the steps the previous SQL source. That means that the changes in TMDL didn't transfer to the .pbip file. How is that possible?

1 ACCEPTED SOLUTION

Thanks for the advice.

I have found the solution that has worked for me in the end. I was digging through the .pbip files and found a json file in: \XXX.Dataset\.pbi\unappliedChanges.json. I deleted this file and suddenly everything works.

The problem might have been caused by me opening the .pbip file while the changes to certain tables wasn't finished yet.

View solution in original post

2 REPLIES 2
v-yaningy-msft
Community Support
Community Support

Hi, @DraMat 

According to your description, the changes made in the Tabular Model Definition Language (TMDL) are not being reflected in your Power BI report. You can try following method to solve the problem.

1. Re-check the TMDL file, make sure that all references to the SQL database have been correctly replaced with the MDB ones.
2. Clear Data Source Settings in Power BI.
File > Options and settings > Data source settings
3. After changing the data source, try refreshing the data model in Power BI. 

Best Regards,
Yang
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

 

Thanks for the advice.

I have found the solution that has worked for me in the end. I was digging through the .pbip files and found a json file in: \XXX.Dataset\.pbi\unappliedChanges.json. I deleted this file and suddenly everything works.

The problem might have been caused by me opening the .pbip file while the changes to certain tables wasn't finished yet.

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

July 2024 Power BI Update

Power BI Monthly Update - July 2024

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

July Newsletter

Fabric Community Update - July 2024

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