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

Did you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now

Reply
AdamMG
Helper I
Helper I

Change Connection String with REST API - Paginated Reports

Hi all.
I need to change connections sting in my Paginated Power BI Report.
Previously I just had to send request like here https://learn.microsoft.com/en-us/rest/api/power-bi/reports/update-datasources-in-group#code-try-0
with my payload like this

{
	"updateDetails": [
		{
			"datasourceName": "DataSourceName",
			"connectionDetails": {         
				"server": "ServerName",
				"database": "DataBaseName"      
				}     
		}  
	] 
}

and everything was working.

As you know, Power BI Report Builder got new functionality and now we can connect to SQL (Get data) ->SQL Server database and do some transformation in Power Query.

The problem is, when I try to change connection details through REST API it doesn't work anymore. 
I do get 200 server response, so now errors, but when I try to run report, it's trying to connect to old server and database (not the new one one from payload)

Any idea what is wrong?

AdamMG_0-1746167537659.png

 

1 ACCEPTED SOLUTION
v-achippa
Community Support
Community Support

Hi @AdamMG,

 

Thank you for reaching out to Microsoft Fabric Community.

 

This behavior here is due to recent enhancements in Power BI Report Builder that introduced Power Query based data sources. Currently, the REST API does not support updating connection details for Power Query data sources in Paginated Reports.

I recommend submitting your detailed feedback and ideas through Microsoft's official feedback channels. Feedback submitted through these channels is frequently reviewed by the product teams and can contribute to meaningful improvements.

Fabric Ideas - Microsoft Fabric Community

 

If this post helps, then please consider Accepting as solution to help the other members find it more quickly, don't forget to give a "Kudos" – I’d truly appreciate it! 

 

Thanks and regards,

Anjan Kumar Chippa

View solution in original post

1 REPLY 1
v-achippa
Community Support
Community Support

Hi @AdamMG,

 

Thank you for reaching out to Microsoft Fabric Community.

 

This behavior here is due to recent enhancements in Power BI Report Builder that introduced Power Query based data sources. Currently, the REST API does not support updating connection details for Power Query data sources in Paginated Reports.

I recommend submitting your detailed feedback and ideas through Microsoft's official feedback channels. Feedback submitted through these channels is frequently reviewed by the product teams and can contribute to meaningful improvements.

Fabric Ideas - Microsoft Fabric Community

 

If this post helps, then please consider Accepting as solution to help the other members find it more quickly, don't forget to give a "Kudos" – I’d truly appreciate it! 

 

Thanks and regards,

Anjan Kumar Chippa

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.