<?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 Re: ReportingServicesTools Set-RsRestItemDataSource - BAD REQUEST how to diagnose? in Report Server</title>
    <link>https://community.fabric.microsoft.com/t5/Report-Server/ReportingServicesTools-Set-RsRestItemDataSource-BAD-REQUEST-how/m-p/2544542#M24355</link>
    <description>&lt;P&gt;In Hopes of getting some help, here is more information.&amp;nbsp; &amp;nbsp;We are on&amp;nbsp;&lt;/P&gt;&lt;P&gt;Build File version Description Release date&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;15.0.1108.159&lt;/TD&gt;&lt;TD&gt;1.13.8086.22725&lt;/TD&gt;&lt;TD&gt;&lt;A href="https://docs.microsoft.com/en-us/power-bi/report-server/changelog#january-2022" target="_blank" rel="nofollow noopener"&gt;Power BI Report Server January 2022 Update&lt;/A&gt;&amp;nbsp;&lt;SPAN&gt;&lt;A title="Download Microsoft Power BI Report Server from Official Microsoft Download Center" href="https://www.microsoft.com/en-us/download/details.aspx?id=55329" target="_blank" rel="nofollow noopener"&gt;Download&lt;/A&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;2022-02-23&lt;SPAN&gt;&amp;nbsp;*new&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;IS it possible that this method (Parameters )&amp;nbsp;&lt;A href="https://docs.microsoft.com/en-us/power-bi/report-server/connect-data-source-apis" target="_blank" rel="noopener"&gt;https://docs.microsoft.com/en-us/power-bi/report-server/connect-data-source-apis&lt;/A&gt;&amp;nbsp; &amp;nbsp;would ned to be used since the method above ( from here&amp;nbsp;&lt;A href="https://docs.microsoft.com/en-us/power-bi/report-server/connect-data-source-apis" target="_blank" rel="noopener"&gt;https://docs.microsoft.com/en-us/power-bi/report-server/connect-data-source-apis&lt;/A&gt;&amp;nbsp;&amp;lt;-- specifies pre-OCT 2020) would need to be used?&amp;nbsp; &amp;nbsp;It seems if that is the case we would need to manually modify all reports to add parameters?&lt;/P&gt;</description>
    <pubDate>Fri, 27 May 2022 18:58:24 GMT</pubDate>
    <dc:creator>IbisRipley</dc:creator>
    <dc:date>2022-05-27T18:58:24Z</dc:date>
    <item>
      <title>ReportingServicesTools Set-RsRestItemDataSource - BAD REQUEST how to diagnose?</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/ReportingServicesTools-Set-RsRestItemDataSource-BAD-REQUEST-how/m-p/2544242#M24353</link>
      <description>&lt;P&gt;I am attempting to write a script to update Datasource connect strings for power bi reports on PBIRS(on prem, no service)&amp;nbsp; - Trying to add a port to the ( sharepoint ) url in the connect string.&amp;nbsp; Forgive me as I am new to this and unsure how to move forward.&amp;nbsp; Script is below and it does return the connectstring with the port to screen prior to setting it.&amp;nbsp; &amp;nbsp; Can anyone help with possible next steps or what might be wrong?&amp;nbsp; Thanks in advance&lt;/P&gt;&lt;P&gt;The last line&lt;/P&gt;&lt;PRE&gt;Set-RsRestItemDataSource -RsItem $dataSourcePath -RsItemType 'PowerBIReport' -DataSources $ds -ReportPortalUri $ReportServerURI&lt;/PRE&gt;&lt;P&gt;returns&lt;/P&gt;&lt;PRE&gt;Failed to update data sources for '/AP/CSECR/Action%20Items': The remote server returned an error: (400) Bad Request.&lt;/PRE&gt;&lt;PRE&gt;$ReportServerURI = "https://&amp;lt;svr&amp;gt;/Reports/"&lt;BR /&gt;$ReportPortalUri = "https://&amp;lt;svr&amp;gt;//PBIReports"&lt;BR /&gt;&lt;BR /&gt;$dataSourcePath = "/MyReportPath"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;cls&lt;BR /&gt;&lt;BR /&gt;#Get-RsRestItemDataSource -RsItem $dataSourcePath -ReportPortalUri $ReportPortalUri&lt;BR /&gt;&lt;BR /&gt;$dataSources = Get-RsRestItemDataSource -RsItem $dataSourcePath -ReportPortalUri $ReportServerUri&lt;BR /&gt;foreach($ds in $dataSources)&lt;BR /&gt;{&lt;BR /&gt;Write-Host $ds.ConnectionString&lt;BR /&gt;&lt;BR /&gt;$ds.ConnectionString = $ds.ConnectionString.Replace("mydomain.com", "mydomain.com.999")&lt;BR /&gt;$ds.DataModelDataSource.AuthType = "Integrated"&lt;BR /&gt;$ds.DataModelDataSource.Username = "Adomain\user"&lt;BR /&gt;$ds.DataModelDataSource.Secret = "mypw"&lt;BR /&gt;&lt;BR /&gt;Write-Host $ds.ConnectionString&lt;BR /&gt;&lt;BR /&gt;Set-RsRestItemDataSource -RsItem $dataSourcePath -RsItemType 'PowerBIReport' -DataSources $ds -ReportPortalUri $ReportServerURI&lt;BR /&gt;}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 May 2022 15:36:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/ReportingServicesTools-Set-RsRestItemDataSource-BAD-REQUEST-how/m-p/2544242#M24353</guid>
      <dc:creator>IbisRipley</dc:creator>
      <dc:date>2022-05-27T15:36:10Z</dc:date>
    </item>
    <item>
      <title>Re: ReportingServicesTools Set-RsRestItemDataSource - BAD REQUEST how to diagnose?</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/ReportingServicesTools-Set-RsRestItemDataSource-BAD-REQUEST-how/m-p/2544287#M24354</link>
      <description>&lt;P&gt;One additional note:&amp;nbsp; I managed to get the Response body, but it doesn't help me much either.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Response body:&lt;BR /&gt;Failed to update data sources for '/AP/CSECR/Action%20Items': The remote server returned an error: (400) Bad Request.&lt;BR /&gt;+ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException&lt;BR /&gt;+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException&lt;/PRE&gt;</description>
      <pubDate>Fri, 27 May 2022 15:57:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/ReportingServicesTools-Set-RsRestItemDataSource-BAD-REQUEST-how/m-p/2544287#M24354</guid>
      <dc:creator>IbisRipley</dc:creator>
      <dc:date>2022-05-27T15:57:22Z</dc:date>
    </item>
    <item>
      <title>Re: ReportingServicesTools Set-RsRestItemDataSource - BAD REQUEST how to diagnose?</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/ReportingServicesTools-Set-RsRestItemDataSource-BAD-REQUEST-how/m-p/2544542#M24355</link>
      <description>&lt;P&gt;In Hopes of getting some help, here is more information.&amp;nbsp; &amp;nbsp;We are on&amp;nbsp;&lt;/P&gt;&lt;P&gt;Build File version Description Release date&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;15.0.1108.159&lt;/TD&gt;&lt;TD&gt;1.13.8086.22725&lt;/TD&gt;&lt;TD&gt;&lt;A href="https://docs.microsoft.com/en-us/power-bi/report-server/changelog#january-2022" target="_blank" rel="nofollow noopener"&gt;Power BI Report Server January 2022 Update&lt;/A&gt;&amp;nbsp;&lt;SPAN&gt;&lt;A title="Download Microsoft Power BI Report Server from Official Microsoft Download Center" href="https://www.microsoft.com/en-us/download/details.aspx?id=55329" target="_blank" rel="nofollow noopener"&gt;Download&lt;/A&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;2022-02-23&lt;SPAN&gt;&amp;nbsp;*new&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;IS it possible that this method (Parameters )&amp;nbsp;&lt;A href="https://docs.microsoft.com/en-us/power-bi/report-server/connect-data-source-apis" target="_blank" rel="noopener"&gt;https://docs.microsoft.com/en-us/power-bi/report-server/connect-data-source-apis&lt;/A&gt;&amp;nbsp; &amp;nbsp;would ned to be used since the method above ( from here&amp;nbsp;&lt;A href="https://docs.microsoft.com/en-us/power-bi/report-server/connect-data-source-apis" target="_blank" rel="noopener"&gt;https://docs.microsoft.com/en-us/power-bi/report-server/connect-data-source-apis&lt;/A&gt;&amp;nbsp;&amp;lt;-- specifies pre-OCT 2020) would need to be used?&amp;nbsp; &amp;nbsp;It seems if that is the case we would need to manually modify all reports to add parameters?&lt;/P&gt;</description>
      <pubDate>Fri, 27 May 2022 18:58:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/ReportingServicesTools-Set-RsRestItemDataSource-BAD-REQUEST-how/m-p/2544542#M24355</guid>
      <dc:creator>IbisRipley</dc:creator>
      <dc:date>2022-05-27T18:58:24Z</dc:date>
    </item>
    <item>
      <title>Re: ReportingServicesTools Set-RsRestItemDataSource - BAD REQUEST how to diagnose?</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/ReportingServicesTools-Set-RsRestItemDataSource-BAD-REQUEST-how/m-p/2548746#M24381</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="116730" data-lia-user-login="IbisRipley" class="lia-mention lia-mention-user"&gt;IbisRipley&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Failed to update data sources for '/AP/CSECR/Action%20Items': The remote server returned an error: (400) Bad Request.&lt;/PRE&gt;
&lt;P&gt;Have you checked the credentials? 400 usually indicates an incorrectly formatted query. In your case, however, this looks more like expired credentials. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Community Support Team _ Caitlyn&lt;/P&gt;</description>
      <pubDate>Tue, 31 May 2022 02:15:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/ReportingServicesTools-Set-RsRestItemDataSource-BAD-REQUEST-how/m-p/2548746#M24381</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-31T02:15:05Z</dc:date>
    </item>
    <item>
      <title>Re: ReportingServicesTools Set-RsRestItemDataSource - BAD REQUEST how to diagnose?</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/ReportingServicesTools-Set-RsRestItemDataSource-BAD-REQUEST-how/m-p/2883870#M27374</link>
      <description>&lt;P&gt;I am having the same issue.&amp;nbsp; I can set many of the values (e. g. Name, Description,&amp;nbsp;DataModelDataSource.AuthType,&amp;nbsp;DataModelDataSource.Username) but, as soon as I add in the&amp;nbsp;DataModelDataSource.Secret = "mypw" it results in the Bad Request (400) error.&lt;/P&gt;&lt;P&gt;That rules out the cerdentials being wrong/expired.&amp;nbsp; I have tried setting the CredentialRetrieval to "prompt" and "store" with no success.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Nov 2022 20:27:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/ReportingServicesTools-Set-RsRestItemDataSource-BAD-REQUEST-how/m-p/2883870#M27374</guid>
      <dc:creator>DustinKeith</dc:creator>
      <dc:date>2022-11-03T20:27:45Z</dc:date>
    </item>
    <item>
      <title>Re: ReportingServicesTools Set-RsRestItemDataSource - BAD REQUEST how to diagnose?</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/ReportingServicesTools-Set-RsRestItemDataSource-BAD-REQUEST-how/m-p/3053367#M28627</link>
      <description>&lt;P&gt;I am getting the same problem do you have any resolution ?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2023 17:11:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/ReportingServicesTools-Set-RsRestItemDataSource-BAD-REQUEST-how/m-p/3053367#M28627</guid>
      <dc:creator>OPB12</dc:creator>
      <dc:date>2023-01-31T17:11:59Z</dc:date>
    </item>
  </channel>
</rss>

