<?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 Updating connection String of power bi reports using powerShell in Report Server</title>
    <link>https://community.fabric.microsoft.com/t5/Report-Server/Updating-connection-String-of-power-bi-reports-using-powerShell/m-p/3211601#M29629</link>
    <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am writing a powerShell Script using the module&amp;nbsp;&lt;SPAN&gt;ReportingServicesTools to automate updating the connection Strings of my PowerBi Reports deployed on PowerBi Report Server. The Script works fine untill the last line which makes the updates on the report server using the function&amp;nbsp;Set-RsRestItemDataSource. The Error is 400 Incorrect Demand.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;All the Echos return what I expect with no problem.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Here is my Script :&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;img /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;and my Error :&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;img /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Part of the error is written in French and it says " the server returned an erreur : 400 incorrect demande ". &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;What I hid in blue is the name of my report.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I looked at this link : &lt;A href="https://community.powerbi.com/t5/Service/Update-connection-string-via-API/m-p/1850500#M128979" target="_blank" rel="noopener"&gt;https://community.powerbi.com/t5/Service/Update-connection-string-via-API/m-p/1850500#M128979&lt;/A&gt; and on the Internet but nothing helped my case.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using this version of PowerBi Report server :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;and I followed the official Docs :&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/power-bi/report-server/connect-data-source-apis-pre-oct-2020" target="_blank" rel="noopener"&gt;https://learn.microsoft.com/en-us/power-bi/report-server/connect-data-source-apis-pre-oct-2020&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I tried another Script with this version of the Docs too but it didn't work for me :&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/power-bi/report-server/connect-data-source-apis" target="_blank" rel="noopener"&gt;https://learn.microsoft.com/en-us/power-bi/report-server/connect-data-source-apis&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I would be glad if you could help me!&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 28 Apr 2023 16:40:05 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-04-28T16:40:05Z</dc:date>
    <item>
      <title>Updating connection String of power bi reports using powerShell</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Updating-connection-String-of-power-bi-reports-using-powerShell/m-p/3211601#M29629</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am writing a powerShell Script using the module&amp;nbsp;&lt;SPAN&gt;ReportingServicesTools to automate updating the connection Strings of my PowerBi Reports deployed on PowerBi Report Server. The Script works fine untill the last line which makes the updates on the report server using the function&amp;nbsp;Set-RsRestItemDataSource. The Error is 400 Incorrect Demand.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;All the Echos return what I expect with no problem.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Here is my Script :&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;img /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;and my Error :&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;img /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Part of the error is written in French and it says " the server returned an erreur : 400 incorrect demande ". &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;What I hid in blue is the name of my report.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I looked at this link : &lt;A href="https://community.powerbi.com/t5/Service/Update-connection-string-via-API/m-p/1850500#M128979" target="_blank" rel="noopener"&gt;https://community.powerbi.com/t5/Service/Update-connection-string-via-API/m-p/1850500#M128979&lt;/A&gt; and on the Internet but nothing helped my case.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using this version of PowerBi Report server :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;and I followed the official Docs :&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/power-bi/report-server/connect-data-source-apis-pre-oct-2020" target="_blank" rel="noopener"&gt;https://learn.microsoft.com/en-us/power-bi/report-server/connect-data-source-apis-pre-oct-2020&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I tried another Script with this version of the Docs too but it didn't work for me :&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/power-bi/report-server/connect-data-source-apis" target="_blank" rel="noopener"&gt;https://learn.microsoft.com/en-us/power-bi/report-server/connect-data-source-apis&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I would be glad if you could help me!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Apr 2023 16:40:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Updating-connection-String-of-power-bi-reports-using-powerShell/m-p/3211601#M29629</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-04-28T16:40:05Z</dc:date>
    </item>
  </channel>
</rss>

