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
abhi_PBIUser
Frequent Visitor

Power BI Service showin 2 data sources after changing it

Dear Team,

 

I'm doing CI/CD and after using power BI Action to update the data source from DEV to UAT, I saw both dev and uat data sources were present in the dataset which is weird.

Incremental refresh is set up in this dataset but I don't think it should cause any errors.

 

Please find the attached SS:

abhi_PBIUser_0-1669307206347.png

 

1 ACCEPTED SOLUTION

Hi @abhi_PBIUser ,

 

I interpret your deployment routine that way that you first publish the Power BI dataset to uat with the dev connection and afterwards you try to change the data source from dev to uat. The problem is that Power BI adds the second data source instead of changing it. I come up with two things that you could try:

 

1) Change your deployment routine to change data source before releasing to uat. 

2) You could alias the data source (i.e. as sqldb) in your dataset. When changing the datasource from dev to uat you can use the alias to tell Power Bi to update the connection string of that explicit data source.

 

Here two blog posts about data sources. The first one is probably more relevant.

https://powerbi.microsoft.com/en-us/blog/using-xmla-endpoints-to-change-data-sources-in-a-power-bi-d...

https://www.tackytech.blog/how-to-automate-the-management-of-custom-partitions-for-power-bi-datasets...

 

Let me know if this helps 🙂

 

/Tom
https://www.tackytech.blog/
https://www.instagram.com/tackytechtom/



Did I answer your question➡️ Please, mark my post as a solution ✔️

Also happily accepting Kudos 🙂

Feel free to connect with me on LinkedIn! linkedIn

#proudtobeasuperuser 

View solution in original post

3 REPLIES 3
GilbertQ
Super User
Super User

Hi @abhi_PBIUser 

 

I would suggest only making sure to have a single dataset in each of your datasets to ensure that it can only connect to the relevant source. And this will also ensure that the data source can successfully connect?





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

Proud to be a Super User!







Power BI Blog

@GilbertQI'm using a single data source only.

As stated, the Issue is coming while changing the data source from dev to UAT through CI/CD Process.

My pbix file is connected to only one data source which points to the DEV database and has its workspace as well when this is getting published to my UAT workspace then it's a requirement that it should point towards the UAT database and when changing it from dev to uat I'm getting both sources under data source section on service.

Hi @abhi_PBIUser ,

 

I interpret your deployment routine that way that you first publish the Power BI dataset to uat with the dev connection and afterwards you try to change the data source from dev to uat. The problem is that Power BI adds the second data source instead of changing it. I come up with two things that you could try:

 

1) Change your deployment routine to change data source before releasing to uat. 

2) You could alias the data source (i.e. as sqldb) in your dataset. When changing the datasource from dev to uat you can use the alias to tell Power Bi to update the connection string of that explicit data source.

 

Here two blog posts about data sources. The first one is probably more relevant.

https://powerbi.microsoft.com/en-us/blog/using-xmla-endpoints-to-change-data-sources-in-a-power-bi-d...

https://www.tackytech.blog/how-to-automate-the-management-of-custom-partitions-for-power-bi-datasets...

 

Let me know if this helps 🙂

 

/Tom
https://www.tackytech.blog/
https://www.instagram.com/tackytechtom/



Did I answer your question➡️ Please, mark my post as a solution ✔️

Also happily accepting Kudos 🙂

Feel free to connect with me on LinkedIn! linkedIn

#proudtobeasuperuser 

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.