<?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: Dataset refresh failed with Service Principal (Power BI REST API) in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Dataset-refresh-failed-with-Service-Principal-Power-BI-REST-API/m-p/4606060#M59803</link>
    <description>&lt;P style="margin: 0in; font-family: tahoma; font-size: 11.0pt;"&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1057941"&gt;@tim_rodewig&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: tahoma; font-size: 11.0pt;"&gt;Did the above suggestions help with your scenario? if that is the case, you can consider Kudo or Accept the helpful suggestions to help others who faced similar requirements.&lt;/P&gt;
&lt;P style="margin: 0in; font-family: tahoma; font-size: 11.0pt;"&gt;If these also don't help, please share more detailed information and description to help us clarify your scenario to test.&lt;/P&gt;
&lt;P style="margin: 0in; font-family: tahoma; font-size: 11.0pt;"&gt;&lt;A href="http://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;How to Get Your Question Answered Quickly&amp;nbsp;&lt;/A&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: tahoma; font-size: 11.0pt;"&gt;Regards,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: tahoma; font-size: 11.0pt;"&gt;Xiaoxin Sheng&lt;/P&gt;</description>
    <pubDate>Wed, 12 Mar 2025 02:38:16 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2025-03-12T02:38:16Z</dc:date>
    <item>
      <title>Dataset refresh failed with Service Principal (Power BI REST API)</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Dataset-refresh-failed-with-Service-Principal-Power-BI-REST-API/m-p/4604715#M59789</link>
      <description>&lt;P&gt;Hello PBI-Developer-Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;we've developed a power bi automate flow to publish a power bi report in a power bi workspace to automate the report creation. The report is connected to databricks (import mode not live query). After importing the report into the workspace using a service principal we're not able to refresh the dataset. We see the following error message in the dataset settings:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Data source error: Scheduled refresh is disabled because at least one data source is missing credentials. To start the refresh again, go to this dataset's settings page and enter credentials for all data sources. Then reactivate scheduled refresh.&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;If I takeover the ownership of the dataset manually we are able to refresh the dataset so I tried to update the dataset owner via the power bi rest api using the service principal using the appropiate url Patch this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;PATCH &lt;A href="https://api.powerbi.com/v1.0/myorg/groups/{groupId}/datasets/{datasetId}" target="_blank" rel="noopener"&gt;https://api.powerbi.com/v1.0/myorg/groups/{groupId}/datasets/{datasetId}&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Header: Authorization Bearer XXXXXXYYYYYYYYYYYYZZZZZZZZ&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;body:&amp;nbsp;{ &lt;SPAN class=""&gt;"configuredBy"&lt;/SPAN&gt;: &lt;SPAN class=""&gt;"myuser@mydom.com"&lt;/SPAN&gt; }&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The PATCH was successfully executed but the owner is still the Service Principal. Any ideas how to solve this?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Mar 2025 08:42:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Dataset-refresh-failed-with-Service-Principal-Power-BI-REST-API/m-p/4604715#M59789</guid>
      <dc:creator>tim_rodewig</dc:creator>
      <dc:date>2025-03-11T08:42:31Z</dc:date>
    </item>
    <item>
      <title>Re: Dataset refresh failed with Service Principal (Power BI REST API)</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Dataset-refresh-failed-with-Service-Principal-Power-BI-REST-API/m-p/4604819#M59791</link>
      <description>&lt;P&gt;why is a problem that the service principal is the owner?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You've already patched the crenentials. If you need to setup a refresh schedule then you can use another API&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/rest/api/power-bi/datasets/update-refresh-schedule-in-group" target="_blank" rel="noopener"&gt;https://learn.microsoft.com/en-us/rest/api/power-bi/datasets/update-refresh-schedule-in-group&lt;/A&gt;. There is a API to transfer ownership, but only to the user authenticated when running the API. If you want ownership you have to do to do so manually in the service&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Mar 2025 09:35:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Dataset-refresh-failed-with-Service-Principal-Power-BI-REST-API/m-p/4604819#M59791</guid>
      <dc:creator>Deku</dc:creator>
      <dc:date>2025-03-11T09:35:47Z</dc:date>
    </item>
    <item>
      <title>Re: Dataset refresh failed with Service Principal (Power BI REST API)</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Dataset-refresh-failed-with-Service-Principal-Power-BI-REST-API/m-p/4605238#M59795</link>
      <description>&lt;P&gt;Thanks for the quick reply. The problem is that the report is connected to databricks and this connection does not work with the service principal credentials.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Mar 2025 13:40:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Dataset-refresh-failed-with-Service-Principal-Power-BI-REST-API/m-p/4605238#M59795</guid>
      <dc:creator>tim_rodewig</dc:creator>
      <dc:date>2025-03-11T13:40:22Z</dc:date>
    </item>
    <item>
      <title>Re: Dataset refresh failed with Service Principal (Power BI REST API)</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Dataset-refresh-failed-with-Service-Principal-Power-BI-REST-API/m-p/4605245#M59796</link>
      <description>&lt;P&gt;If you have a gateway you can bind the model to a gateway connector pre authenticated by a user&lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/rest/api/power-bi/reports/bind-to-gateway-in-group" target="_blank" rel="noopener"&gt;https://learn.microsoft.com/en-us/rest/api/power-bi/reports/bind-to-gateway-in-group&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I have a feeling this should also work for shared cloud connections as they have a gatewayid associated with them, distinct from on prem and VNET gateways that you may or may not have&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You will need to give the SNP access to the connection.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Mar 2025 13:53:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Dataset-refresh-failed-with-Service-Principal-Power-BI-REST-API/m-p/4605245#M59796</guid>
      <dc:creator>Deku</dc:creator>
      <dc:date>2025-03-11T13:53:37Z</dc:date>
    </item>
    <item>
      <title>Re: Dataset refresh failed with Service Principal (Power BI REST API)</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Dataset-refresh-failed-with-Service-Principal-Power-BI-REST-API/m-p/4606060#M59803</link>
      <description>&lt;P style="margin: 0in; font-family: tahoma; font-size: 11.0pt;"&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1057941"&gt;@tim_rodewig&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: tahoma; font-size: 11.0pt;"&gt;Did the above suggestions help with your scenario? if that is the case, you can consider Kudo or Accept the helpful suggestions to help others who faced similar requirements.&lt;/P&gt;
&lt;P style="margin: 0in; font-family: tahoma; font-size: 11.0pt;"&gt;If these also don't help, please share more detailed information and description to help us clarify your scenario to test.&lt;/P&gt;
&lt;P style="margin: 0in; font-family: tahoma; font-size: 11.0pt;"&gt;&lt;A href="http://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;How to Get Your Question Answered Quickly&amp;nbsp;&lt;/A&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: tahoma; font-size: 11.0pt;"&gt;Regards,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: tahoma; font-size: 11.0pt;"&gt;Xiaoxin Sheng&lt;/P&gt;</description>
      <pubDate>Wed, 12 Mar 2025 02:38:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Dataset-refresh-failed-with-Service-Principal-Power-BI-REST-API/m-p/4606060#M59803</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-03-12T02:38:16Z</dc:date>
    </item>
  </channel>
</rss>

