<?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 parameter in a published report in Report Server</title>
    <link>https://community.fabric.microsoft.com/t5/Report-Server/Updating-parameter-in-a-published-report/m-p/2486090#M23937</link>
    <description>&lt;P&gt;&lt;SPAN&gt;I am on Report Server version&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;1.12.7936.39665&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;and trying to update one parameter in a simple published report,&lt;/P&gt;&lt;P&gt;with PBRS REST API (&lt;A href="https://app.swaggerhub.com/apis/microsoft-rs/PBIRS/2.0#/" target="_blank"&gt;PBIRS | 2.0 | microsoft-rs | SwaggerHub&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;but despite the successful update, the parameter keeps its original value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the simple steps to recreate the issue:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Publishing a simple single query report to path &lt;STRONG&gt;/MyReport&lt;/STRONG&gt;,&lt;BR /&gt;with paramater called &lt;STRONG&gt;Databasename&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. Double checking the current paramater value with a simple GET call:&lt;BR /&gt;&lt;EM&gt;&lt;A href="http://MyReportServer/Reports/api/v2.0/PowerBIReports(path='/MyReport')/DataModelParameters" target="_blank"&gt;http://MyReportServer/Reports/api/v2.0/PowerBIReports(path='/MyReport')/DataModelParameters&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;gives me back the expected original parameter value from the report which is:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;"Name": "Databasename",
"Value": "MyOriginalDb"&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;3. Now updating the parameter for the report with a POST message:&lt;BR /&gt;&lt;EM&gt;&lt;A href="http://MyReportServer/Reports/api/v2.0/PowerBIReports(path='/MyReport')/DataModelParameters" target="_blank"&gt;http://MyReportServer/Reports/api/v2.0/PowerBIReports(path='/MyReport')/DataModelParameters&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Message body:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;	[
	  {
		"Name": "Databasename",
		"Value": "MyNewDb"
	  }
	]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Works as expected, i have a successful POST pesponse.&lt;BR /&gt;Also the PowerBI report server log shows no error on my POST message.&lt;/P&gt;&lt;P&gt;So the report now has the &lt;STRONG&gt;Databasename&lt;/STRONG&gt; parameter with &lt;STRONG&gt;MyNewDb&lt;/STRONG&gt; value.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;4. Issuing a GET for the report, it gives back the expected new value which is "MyNewDb:"&lt;BR /&gt;&lt;EM&gt;&lt;A href="http://MyReportServer/Reports/api/v2.0/PowerBIReports(path='/MyReport')/DataModelParameters" target="_blank"&gt;http://MyReportServer/Reports/api/v2.0/PowerBIReports(path='/MyReport')/DataModelParameters&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Response:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;	{
		"@odata.context": "http://MyReportServer/Reports/api/v2.0/$metadata#Collection(Model.DataModelParameter)",
		"value": [
			{
				"Name": "Databasename",
				"Value": "MyNewDb"
			}
		]
	}&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;Indeed, the parameter update went fine in the published report.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;5. Now comes the problem:&lt;BR /&gt;Opening the report directly from the report server (even with Power BI Desktop app)&lt;BR /&gt;still uses and has the old paramater value "MyOriginalDb" instead of "MyNewDb"&lt;BR /&gt;(even after refresh)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tried with PBRS PowerShell tools as well:&amp;nbsp;&lt;A href="https://github.com/microsoft/ReportingServicesTools" target="_blank"&gt;GitHub - microsoft/ReportingServicesTools: Reporting Services Powershell Tools&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Same issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it a bug? Seems like the report is cached somehow at the web portal side and not updating with the backend?&lt;/P&gt;&lt;P&gt;What could be the workaround here?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 29 Apr 2022 15:40:06 GMT</pubDate>
    <dc:creator>devnull</dc:creator>
    <dc:date>2022-04-29T15:40:06Z</dc:date>
    <item>
      <title>Updating parameter in a published report</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Updating-parameter-in-a-published-report/m-p/2486090#M23937</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I am on Report Server version&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;1.12.7936.39665&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;and trying to update one parameter in a simple published report,&lt;/P&gt;&lt;P&gt;with PBRS REST API (&lt;A href="https://app.swaggerhub.com/apis/microsoft-rs/PBIRS/2.0#/" target="_blank"&gt;PBIRS | 2.0 | microsoft-rs | SwaggerHub&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;but despite the successful update, the parameter keeps its original value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the simple steps to recreate the issue:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Publishing a simple single query report to path &lt;STRONG&gt;/MyReport&lt;/STRONG&gt;,&lt;BR /&gt;with paramater called &lt;STRONG&gt;Databasename&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. Double checking the current paramater value with a simple GET call:&lt;BR /&gt;&lt;EM&gt;&lt;A href="http://MyReportServer/Reports/api/v2.0/PowerBIReports(path='/MyReport')/DataModelParameters" target="_blank"&gt;http://MyReportServer/Reports/api/v2.0/PowerBIReports(path='/MyReport')/DataModelParameters&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;gives me back the expected original parameter value from the report which is:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;"Name": "Databasename",
"Value": "MyOriginalDb"&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;3. Now updating the parameter for the report with a POST message:&lt;BR /&gt;&lt;EM&gt;&lt;A href="http://MyReportServer/Reports/api/v2.0/PowerBIReports(path='/MyReport')/DataModelParameters" target="_blank"&gt;http://MyReportServer/Reports/api/v2.0/PowerBIReports(path='/MyReport')/DataModelParameters&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Message body:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;	[
	  {
		"Name": "Databasename",
		"Value": "MyNewDb"
	  }
	]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Works as expected, i have a successful POST pesponse.&lt;BR /&gt;Also the PowerBI report server log shows no error on my POST message.&lt;/P&gt;&lt;P&gt;So the report now has the &lt;STRONG&gt;Databasename&lt;/STRONG&gt; parameter with &lt;STRONG&gt;MyNewDb&lt;/STRONG&gt; value.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;4. Issuing a GET for the report, it gives back the expected new value which is "MyNewDb:"&lt;BR /&gt;&lt;EM&gt;&lt;A href="http://MyReportServer/Reports/api/v2.0/PowerBIReports(path='/MyReport')/DataModelParameters" target="_blank"&gt;http://MyReportServer/Reports/api/v2.0/PowerBIReports(path='/MyReport')/DataModelParameters&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Response:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;	{
		"@odata.context": "http://MyReportServer/Reports/api/v2.0/$metadata#Collection(Model.DataModelParameter)",
		"value": [
			{
				"Name": "Databasename",
				"Value": "MyNewDb"
			}
		]
	}&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;Indeed, the parameter update went fine in the published report.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;5. Now comes the problem:&lt;BR /&gt;Opening the report directly from the report server (even with Power BI Desktop app)&lt;BR /&gt;still uses and has the old paramater value "MyOriginalDb" instead of "MyNewDb"&lt;BR /&gt;(even after refresh)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tried with PBRS PowerShell tools as well:&amp;nbsp;&lt;A href="https://github.com/microsoft/ReportingServicesTools" target="_blank"&gt;GitHub - microsoft/ReportingServicesTools: Reporting Services Powershell Tools&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Same issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it a bug? Seems like the report is cached somehow at the web portal side and not updating with the backend?&lt;/P&gt;&lt;P&gt;What could be the workaround here?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2022 15:40:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Updating-parameter-in-a-published-report/m-p/2486090#M23937</guid>
      <dc:creator>devnull</dc:creator>
      <dc:date>2022-04-29T15:40:06Z</dc:date>
    </item>
    <item>
      <title>Re: Updating parameter in a published report</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Updating-parameter-in-a-published-report/m-p/2488027#M23951</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/383173"&gt;@devnull&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;5. Now comes the problem:&lt;BR /&gt;Opening the report directly from the report server (even with Power BI Desktop app)&lt;BR /&gt;still uses and has the old paramater value "MyOriginalDb" instead of "MyNewDb"&lt;BR /&gt;(even after refresh)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If I understand correctly I believe this is actually the expected behaviour. When you override the parameter values on the server those overrides are stored on the server. If you download the PBIX file the original "design time" values for those parameters are returned. The new values are not injected into the PBIX file, rather they are used at run time when a scheduled refresh is triggered.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When you trigger a scheduled refresh on the server the data should be coming from the DatabaseName specified in the updated parameter on the server.&lt;/P&gt;</description>
      <pubDate>Mon, 02 May 2022 07:29:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Updating-parameter-in-a-published-report/m-p/2488027#M23951</guid>
      <dc:creator>d_gosbell</dc:creator>
      <dc:date>2022-05-02T07:29:54Z</dc:date>
    </item>
    <item>
      <title>Re: Updating parameter in a published report</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Updating-parameter-in-a-published-report/m-p/2488693#M23959</link>
      <description>&lt;P&gt;You are right. After a scheduled refresh, the report indeed points to the proper db, BUT:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What will be extremely confusing for the users: if they try to edit this "updated" report (with "Edit in Power BI Desktop" button), then save, and publish their changes back to the server, they publish back the old database name again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now i have two entities on the server:&lt;/P&gt;&lt;P&gt;1. one is the backsground, updated report, which is observable through the web ui&lt;/P&gt;&lt;P&gt;2. other is the old version opening up through the "edit in power bi dekstop" button&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This couldn't be the intended feature, can it?&lt;/P&gt;&lt;P&gt;How can one make sure the uploaded report gets the changes as well?&lt;/P&gt;&lt;P&gt;Do it right when uploading?&lt;/P&gt;</description>
      <pubDate>Mon, 02 May 2022 12:50:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Updating-parameter-in-a-published-report/m-p/2488693#M23959</guid>
      <dc:creator>devnull</dc:creator>
      <dc:date>2022-05-02T12:50:10Z</dc:date>
    </item>
    <item>
      <title>Re: Updating parameter in a published report</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Updating-parameter-in-a-published-report/m-p/2489145#M23961</link>
      <description>&lt;P&gt;You are right. After a scheduled refresh, the report indeed points to the proper db, BUT:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What will be extremely confusing for the users: if they try to edit this "updated" report (with "Edit in Power BI Desktop" button), then save, and publish their changes back to the server, they publish back the old database name again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now i have two entities on the server:&lt;/P&gt;&lt;P&gt;1. one is the backsground, updated report, which is observable through the web ui&lt;/P&gt;&lt;P&gt;2. other is the old version opening up through the "edit in power bi dekstop" button&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This couldn't be the intended feature, can it?&lt;/P&gt;&lt;P&gt;How can one make sure the uploaded report gets the changes as well?&lt;/P&gt;&lt;P&gt;Do it right when uploading?&lt;/P&gt;</description>
      <pubDate>Mon, 02 May 2022 16:18:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Updating-parameter-in-a-published-report/m-p/2489145#M23961</guid>
      <dc:creator>devnull</dc:creator>
      <dc:date>2022-05-02T16:18:49Z</dc:date>
    </item>
    <item>
      <title>Re: Updating parameter in a published report</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Updating-parameter-in-a-published-report/m-p/2490602#M23969</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/383173"&gt;@devnull&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;How can one make sure the uploaded report gets the changes as well?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;So if you want the same parameter value in your pbix file and on the server then just set the parameter in PBI Desktop before you upload it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/383173"&gt;@devnull&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;This couldn't be the intended feature, can it?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I'm pretty sure this is by design. One of the common use cases for an admin to override a parameter on the server it's because the user only has access to a dev/test server or database. So they develop the report against that non-prod data, then they upload to the Report Server and the scheduled refresh pulls from the production database or server.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When you are in this scenario and the user clicks on "Edit in Power BI Desktop" the user would need to use the non-prod parameter to make any changes to the report. If the parameter values from the server were merged in then they would get access denied errors when attempting to change anything in the queries.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It can be confusing at first to see a different data when you click on Edit compared to what you see on the server, but I believe the scenario above is what they were targeting.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2022 10:13:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Updating-parameter-in-a-published-report/m-p/2490602#M23969</guid>
      <dc:creator>d_gosbell</dc:creator>
      <dc:date>2022-05-03T10:13:45Z</dc:date>
    </item>
    <item>
      <title>Re: Updating parameter in a published report</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Updating-parameter-in-a-published-report/m-p/2490641#M23972</link>
      <description>&lt;P&gt;Thank you d_gosbell! Yes it is confusing, but it seems it is what it is.&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2022 10:40:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Updating-parameter-in-a-published-report/m-p/2490641#M23972</guid>
      <dc:creator>devnull</dc:creator>
      <dc:date>2022-05-03T10:40:56Z</dc:date>
    </item>
  </channel>
</rss>

