<?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: 401 Error when rebinding report in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/401-Error-when-rebinding-report/m-p/229541#M7231</link>
    <description>&lt;P&gt;We've been skating by so far using the ClientID supplied by the PowerShell library we're using - attemping to pass our own ClientID results in errors I've been trying to avoid troubleshooting, but it sounds like it's time for us to put our big boy pants on and do this the right way.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appreciate the info!&lt;/P&gt;</description>
    <pubDate>Thu, 10 Aug 2017 20:50:45 GMT</pubDate>
    <dc:creator>bkuhse</dc:creator>
    <dc:date>2017-08-10T20:50:45Z</dc:date>
    <item>
      <title>401 Error when rebinding report</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/401-Error-when-rebinding-report/m-p/227491#M7175</link>
      <description>&lt;P&gt;We're doing some preliminary exploration of the API via PowerShell and receiving a 401 error when attempting to rebind a report to a new dataset.&amp;nbsp; Other API calls are successful, including other POST actions like cloning.&amp;nbsp; There are no details provided with the 401.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone offer any insight as to what may be causing this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A GET to this URL works fine:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://api.powerbi.com/v1.0/myorg/groups/$ReportWorkspace/reports/$ReportID" target="_blank"&gt;https://api.powerbi.com/v1.0/myorg/groups/$ReportWorkspace/reports/$ReportID&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And so does a POST here (necessary parameters passed in the body):&lt;/P&gt;&lt;P&gt;&lt;A href="https://api.powerbi.com/v1.0/myorg/groups/$ReportWorkspace/reports/$ReportID/Clone" target="_blank"&gt;https://api.powerbi.com/v1.0/myorg/groups/$ReportWorkspace/reports/$ReportID/Clone&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A POST to this URL results in a 401 (datasetID passed&amp;nbsp;in the body):&lt;/P&gt;&lt;P&gt;&lt;A href="https://api.powerbi.com/v1.0/myorg/groups/$ReportWorkspace/reports/$ReportID/Rebind" target="_blank"&gt;https://api.powerbi.com/v1.0/myorg/groups/$ReportWorkspace/reports/$ReportID/Rebind&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;Having this functionality work is an important part of our planned deployment for PowerBI, and I spent far too long yesterday pounding my head against this vague error. &amp;nbsp;Any direction would be appreciated!&lt;/P&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Aug 2017 11:33:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/401-Error-when-rebinding-report/m-p/227491#M7175</guid>
      <dc:creator>bkuhse</dc:creator>
      <dc:date>2017-08-08T11:33:10Z</dc:date>
    </item>
    <item>
      <title>Re: 401 Error when rebinding report</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/401-Error-when-rebinding-report/m-p/227970#M7183</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/34816"&gt;@bkuhse&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;The &lt;A href="https://msdn.microsoft.com/en-us/library/mt784672.aspx" target="_self"&gt;Rebind&lt;/A&gt; API works in my test, as to 401, it is a&amp;nbsp;unauthorized issue, please go to &lt;A href="https://ms.portal.azure.com" target="_self"&gt;Azure portal&lt;/A&gt; and ensure that you've set all permissions for the registered app and then click grant permissions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture2.PNG" style="width: 600px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/53902i6B8F875344E39AE8/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture2.PNG" alt="Capture2.PNG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 600px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/53904i835F66011FFF49D8/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2017 02:48:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/401-Error-when-rebinding-report/m-p/227970#M7183</guid>
      <dc:creator>Eric_Zhang</dc:creator>
      <dc:date>2017-08-09T02:48:28Z</dc:date>
    </item>
    <item>
      <title>Re: 401 Error when rebinding report</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/401-Error-when-rebinding-report/m-p/229541#M7231</link>
      <description>&lt;P&gt;We've been skating by so far using the ClientID supplied by the PowerShell library we're using - attemping to pass our own ClientID results in errors I've been trying to avoid troubleshooting, but it sounds like it's time for us to put our big boy pants on and do this the right way.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appreciate the info!&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2017 20:50:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/401-Error-when-rebinding-report/m-p/229541#M7231</guid>
      <dc:creator>bkuhse</dc:creator>
      <dc:date>2017-08-10T20:50:45Z</dc:date>
    </item>
  </channel>
</rss>

