<?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: Refresh dataset via API issue in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Refresh-dataset-via-API-issue/m-p/2529405#M36225</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have you solved this issue?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am encountering the same thing.&lt;BR /&gt;&lt;BR /&gt;{&lt;BR /&gt;'notifyOption': 'MailOnFailure',&lt;BR /&gt;'retryCount': 1&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I leave the second parameter 'retryCount' as blank then the NotifyOption works. If not, I don't get an email.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 20 May 2022 12:34:59 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-05-20T12:34:59Z</dc:date>
    <item>
      <title>Refresh dataset via API issue</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Refresh-dataset-via-API-issue/m-p/2381047#M34820</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm&amp;nbsp; refreshing a dataset via API, however it would sometimes fail. I tried chaning the commitMode to PartialBatch but it's not working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm calling:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;https://api.powerbi.com/v1.0/myorg/groups/&amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;my &lt;/SPAN&gt;group_id&amp;gt;&lt;SPAN&gt;/datasets/&amp;lt;my &lt;/SPAN&gt;dataset_id&amp;gt;&lt;SPAN&gt;/refreshes&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;with the body:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;{&lt;BR /&gt;&lt;/SPAN&gt;    '&lt;SPAN&gt;notifyOption'&lt;/SPAN&gt;: '&lt;SPAN&gt;NoNotification'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;    &lt;SPAN&gt;'commitMode'&lt;/SPAN&gt;: &lt;SPAN&gt;'partialBatch'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;    &lt;SPAN&gt;'retryCount'&lt;/SPAN&gt;: &lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;I get the error&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{"error":{"code":"InvalidRequest","message":"Dataset ID ... belongs to a shared capacity."}}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is wrong with the dataset belonging to a shared capacity?&lt;/P&gt;&lt;P&gt;When there's only&amp;nbsp;&lt;SPAN&gt;notifyOption in the body, the refresh starts at least.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;By adding more parameters, I'm doing to async refresh (&lt;A href="https://docs.microsoft.com/en-us/power-bi/connect-data/asynchronous-refresh" target="_self"&gt;https://docs.microsoft.com/en-us/power-bi/connect-data/asynchronous-refresh&lt;/A&gt;) but&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;I don't remember reading anything in the docs mentionning shared capacity and&amp;nbsp;async refresh limitations.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any ideas why the request is invalid?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2022 10:49:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Refresh-dataset-via-API-issue/m-p/2381047#M34820</guid>
      <dc:creator>ronant</dc:creator>
      <dc:date>2022-03-08T10:49:18Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh dataset via API issue</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Refresh-dataset-via-API-issue/m-p/2387895#M34898</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/91616"&gt;@ronant&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;If you are refreshing the dataset that is in a shared capacity, you can &lt;STRONG&gt;only&lt;/STRONG&gt; make up to &lt;EM&gt;&lt;STRONG&gt;eight requests&lt;/STRONG&gt;&lt;/EM&gt; per day. These eight requests include &lt;STRONG&gt;both&lt;/STRONG&gt; scheduled refreshes and API refreshes. You can find more details in the following documentations. Please check whether you hit the following limitation... Any comment or problem, please feel free to let me know.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/rest/api/power-bi/datasets/refresh-dataset-in-group#limitations" target="_self"&gt;Refresh dataset REST API Limitations&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/power-bi/connect-data/refresh-data#data-refresh" target="_self"&gt;Data refresh&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="yingyinr_0-1646980612566.png" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/682588i0BAFA41F2AF9957C/image-size/large?v=v2&amp;amp;px=999" role="button" title="yingyinr_0-1646980612566.png" alt="yingyinr_0-1646980612566.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2022 06:46:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Refresh-dataset-via-API-issue/m-p/2387895#M34898</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-03-11T06:46:49Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh dataset via API issue</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Refresh-dataset-via-API-issue/m-p/2391936#M34953</link>
      <description>&lt;P&gt;The dataset is indeed in a shared capacity however I am not above 8 requests when doing the refreshes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When testing, this works the first time:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;{&lt;BR /&gt;&lt;/SPAN&gt;    '&lt;SPAN&gt;notifyOption'&lt;/SPAN&gt;: '&lt;SPAN&gt;NoNotification'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The second with the following doesn't:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;{&lt;BR /&gt;&lt;/SPAN&gt;    '&lt;SPAN&gt;notifyOption'&lt;/SPAN&gt;: '&lt;SPAN&gt;NoNotification'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;    &lt;SPAN&gt;'commitMode'&lt;/SPAN&gt;: &lt;SPAN&gt;'partialBatch'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;    &lt;SPAN&gt;'retryCount'&lt;/SPAN&gt;: &lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried a third time, same as the first, it also works, no&amp;nbsp;error from the API.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Mar 2022 09:47:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Refresh-dataset-via-API-issue/m-p/2391936#M34953</guid>
      <dc:creator>ronant</dc:creator>
      <dc:date>2022-03-14T09:47:29Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh dataset via API issue</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Refresh-dataset-via-API-issue/m-p/2529405#M36225</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have you solved this issue?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am encountering the same thing.&lt;BR /&gt;&lt;BR /&gt;{&lt;BR /&gt;'notifyOption': 'MailOnFailure',&lt;BR /&gt;'retryCount': 1&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I leave the second parameter 'retryCount' as blank then the NotifyOption works. If not, I don't get an email.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 May 2022 12:34:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Refresh-dataset-via-API-issue/m-p/2529405#M36225</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-20T12:34:59Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh dataset via API issue</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Refresh-dataset-via-API-issue/m-p/2551079#M36439</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I was dealing with this same problem. I think the explanation is in the documentation shared by&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;(maybe it was updated recently, at least I don't remember when I first read the API documentation).&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gabrielfonseca_0-1654021142567.png" style="width: 688px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/724691i8A9894A340DB889D/image-dimensions/688x172?v=v2" width="688" height="172" role="button" title="gabrielfonseca_0-1654021142567.png" alt="gabrielfonseca_0-1654021142567.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I hope they change this and allow the retry option for shared capacity, as long as it respects the eight requests per day limit.&lt;BR /&gt;The retry option was exactly what took us to explore the possibility of using the API to refresh some datasets.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 May 2022 18:25:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Refresh-dataset-via-API-issue/m-p/2551079#M36439</guid>
      <dc:creator>gabrielfonseca</dc:creator>
      <dc:date>2022-05-31T18:25:24Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh dataset via API issue</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Refresh-dataset-via-API-issue/m-p/2700894#M37883</link>
      <description>&lt;P&gt;Could be the inclusion of the 'notifyOption' according to the documentation this should not be included in the web call.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;For enhanced refresh,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;notifyOption&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;is not required and must be excluded from the request body. However, one or more parameters other than&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;notifyOption&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;are required.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/rest/api/power-bi/datasets/refresh-dataset-in-group#:~:text=For%20enhanced%20refresh%2C%20notifyOption%20is%20not%20required%20and%20must%20be%20excluded%20from%20the%20request%20body.%20However%2C%20one%20or%20more%20parameters%20other%20than%20notifyOption%20are%20required." target="_self"&gt;Limitations&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2022 16:04:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Refresh-dataset-via-API-issue/m-p/2700894#M37883</guid>
      <dc:creator>mattio</dc:creator>
      <dc:date>2022-08-15T16:04:39Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh dataset via API issue</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Refresh-dataset-via-API-issue/m-p/2703253#M37911</link>
      <description>&lt;P&gt;Hi!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SDM_1997_0-1660655809228.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/765939iB70DCBEB4CC0B3C5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SDM_1997_0-1660655809228.png" alt="SDM_1997_0-1660655809228.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In the documentation, it is given that enhanced refresh is not supported for shared capacity. Hence, you are getting the error. Only notifyOption is supported for shared capacity.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2022 13:19:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Refresh-dataset-via-API-issue/m-p/2703253#M37911</guid>
      <dc:creator>SDM_1997</dc:creator>
      <dc:date>2022-08-16T13:19:00Z</dc:date>
    </item>
  </channel>
</rss>

