<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Change Connection String with REST API - Paginated Reports in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Change-Connection-String-with-REST-API-Paginated-Reports/m-p/4676919#M60941</link>
    <description>&lt;P&gt;Hi all.&lt;BR /&gt;I need to change connections sting in my Paginated Power BI Report.&lt;BR /&gt;Previously I just had to send request like here&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/rest/api/power-bi/reports/update-datasources-in-group#code-try-0" target="_blank"&gt;https://learn.microsoft.com/en-us/rest/api/power-bi/reports/update-datasources-in-group#code-try-0&lt;/A&gt;&lt;BR /&gt;with my payload like this&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
	"updateDetails": [
		{
			"datasourceName": "DataSourceName",
			"connectionDetails": {         
				"server": "ServerName",
				"database": "DataBaseName"      
				}     
		}  
	] 
}&lt;/LI-CODE&gt;&lt;P&gt;and everything was working.&lt;BR /&gt;&lt;BR /&gt;As you know, Power BI Report Builder got new functionality and now we can connect to SQL (Get data) -&amp;gt;SQL Server database and do some transformation in Power Query.&lt;BR /&gt;&lt;BR /&gt;The problem is, when I try to change connection details through REST API it doesn't work anymore.&amp;nbsp;&lt;BR /&gt;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)&lt;BR /&gt;&lt;BR /&gt;Any idea what is wrong?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AdamMG_0-1746167537659.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1265048i4E6F97F5FDCD5E67/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AdamMG_0-1746167537659.png" alt="AdamMG_0-1746167537659.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 02 May 2025 06:37:19 GMT</pubDate>
    <dc:creator>AdamMG</dc:creator>
    <dc:date>2025-05-02T06:37:19Z</dc:date>
    <item>
      <title>Change Connection String with REST API - Paginated Reports</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Change-Connection-String-with-REST-API-Paginated-Reports/m-p/4676919#M60941</link>
      <description>&lt;P&gt;Hi all.&lt;BR /&gt;I need to change connections sting in my Paginated Power BI Report.&lt;BR /&gt;Previously I just had to send request like here&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/rest/api/power-bi/reports/update-datasources-in-group#code-try-0" target="_blank"&gt;https://learn.microsoft.com/en-us/rest/api/power-bi/reports/update-datasources-in-group#code-try-0&lt;/A&gt;&lt;BR /&gt;with my payload like this&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
	"updateDetails": [
		{
			"datasourceName": "DataSourceName",
			"connectionDetails": {         
				"server": "ServerName",
				"database": "DataBaseName"      
				}     
		}  
	] 
}&lt;/LI-CODE&gt;&lt;P&gt;and everything was working.&lt;BR /&gt;&lt;BR /&gt;As you know, Power BI Report Builder got new functionality and now we can connect to SQL (Get data) -&amp;gt;SQL Server database and do some transformation in Power Query.&lt;BR /&gt;&lt;BR /&gt;The problem is, when I try to change connection details through REST API it doesn't work anymore.&amp;nbsp;&lt;BR /&gt;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)&lt;BR /&gt;&lt;BR /&gt;Any idea what is wrong?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AdamMG_0-1746167537659.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1265048i4E6F97F5FDCD5E67/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AdamMG_0-1746167537659.png" alt="AdamMG_0-1746167537659.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 May 2025 06:37:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Change-Connection-String-with-REST-API-Paginated-Reports/m-p/4676919#M60941</guid>
      <dc:creator>AdamMG</dc:creator>
      <dc:date>2025-05-02T06:37:19Z</dc:date>
    </item>
    <item>
      <title>Re: Change Connection String with REST API - Paginated Reports</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Change-Connection-String-with-REST-API-Paginated-Reports/m-p/4677614#M60961</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/526534"&gt;@AdamMG&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you for reaching out to Microsoft Fabric Community.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;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.&lt;/P&gt;
&lt;P&gt;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.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Fabric-Ideas/idb-p/fbc_ideas/ideas/search-ideas" target="_blank"&gt;Fabric Ideas - Microsoft Fabric Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;helps, then please consider&lt;SPAN&gt;&amp;nbsp;&lt;STRONG&gt;Accepting as solution&amp;nbsp;&lt;/STRONG&gt;to help the other members find it more quickly,&amp;nbsp;don't forget to give a&amp;nbsp;&lt;STRONG&gt;"Kudos"&lt;/STRONG&gt;&amp;nbsp;– I’d truly appreciate it!&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks and regards,&lt;/P&gt;
&lt;P&gt;Anjan Kumar Chippa&lt;/P&gt;</description>
      <pubDate>Fri, 02 May 2025 12:09:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Change-Connection-String-with-REST-API-Paginated-Reports/m-p/4677614#M60961</guid>
      <dc:creator>v-achippa</dc:creator>
      <dc:date>2025-05-02T12:09:33Z</dc:date>
    </item>
  </channel>
</rss>

