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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

Reply
arunbyc
Helper I
Helper I

Could not change the data source to another DB on the same server

I tried to change the data source of a visual (abc.pbix)  from one database ("MyDatabase-Dev") to another database ("MyDatabase-Test") which is also on the same server using Parameters but that did not work. So I tried to change the data source manually to troubleshoot the issues.

 

I created a dummy visual in the Test database using one of the tables from abc.pbix.  clicked TransformData, copied the code from the "Navigation" step, and pasted it on the Navigation step of the same table in adc.pbix on Dev in power query editor.

 

I got an error message that "MyDatabase-Test" wasn't recognized. Make sure you spelled it correctly".

(This was the same message I received even when I tried changing the data source through parameters). But this time I did not even type the name. I cut and pasted it as above.

 

I then tried to do the same copy/paste the source name using the advanced editor instead of in the Power Query window.

 

I received a message that "Mydatabase-Test matches no exports. Did you miss a module reference?

 

I have to get the Reports to be tested in the Test environment soon. Can you please help how to resolve or troubleshoot this issue?

 

Thanks

 

AR

1 REPLY 1
rohit1991
Helper I
Helper I

Ensure you can connect to MyDatabase-Test via SQL Server Management Studio to verify access and credentials. Go to File > Options and Settings > Data Source Settings in Power BI, clear permissions, and re-enter credentials for MyDatabase-Test. In Power Query, update the Source step to:

Source = Sql.Database("ServerName", "MyDatabase-Test")

Ensure the database name is correctly spelled. Create a new Power BI report and connect to MyDatabase-Test to confirm the connection works. Verify all queries use the updated parameter and not hardcoded values. If issues persist, involve your DBA to check server/module settings.

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! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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

October NL Carousel

Fabric Community Update - October 2024

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