<?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: Dataflow Refresh via API Fails in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Dataflow-Refresh-via-API-Fails/m-p/1709270#M28267</link>
    <description>&lt;P&gt;We've resolved the issue. Posting here in case anybody else encountes the same problem. The problem was in the way API was called. Although during the call, part of the header we defined "Content-Type": "application/json", when passing&lt;BR /&gt;body = {'notifyOption': "MailOnFailure"} as data=body in the call was causing the error above.&lt;BR /&gt;response = requests.post(url=url, headers=headers, data=body.....)&lt;BR /&gt;&lt;BR /&gt;After changing to&lt;BR /&gt;response = requests.post(url=url, headers=headers, json=body...) everything works.&lt;BR /&gt;It is strange that the same construct with data=body works fine with dataset referesh.&lt;/P&gt;</description>
    <pubDate>Mon, 08 Mar 2021 15:04:18 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-03-08T15:04:18Z</dc:date>
    <item>
      <title>Dataflow Refresh via API Fails</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Dataflow-Refresh-via-API-Fails/m-p/792496#M20771</link>
      <description>&lt;P&gt;Built a Logic App to automate data refresh using PowerBI API. Having an issue getting published Dataflow to refresh, while Dataset will refresh.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Was able to use the Swagger file from here on GitHub -&amp;nbsp;&lt;A href="https://github.com/Microsoft/PowerBI-CSharp/blob/master/sdk/swaggers/swaggerV2.json" target="_blank" rel="noopener"&gt;https://github.com/Microsoft/PowerBI-CSharp/blob/master/sdk/swaggers/swaggerV2.json&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Dataset refresh worked, after setting the content type to JSON and refreshRequest="y"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The exact same setup for Dataflow refresh errors out with the following-&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"error"&lt;/SPAN&gt;&lt;SPAN&gt;: {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"code"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"BadRequest"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"message"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"Bad Request"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"details"&lt;/SPAN&gt;&lt;SPAN&gt;: [&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"message"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"Unexpected character encountered while parsing value: y. Path '', line 0, position 0."&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"target"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"refreshRequest"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I've tried changing to different characters, even numbers, but nothing worked successfully.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Anyone been able to programmitically refresh their PowerBI Dataflow?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 15 Sep 2019 00:03:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Dataflow-Refresh-via-API-Fails/m-p/792496#M20771</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-09-15T00:03:34Z</dc:date>
    </item>
    <item>
      <title>Re: Dataflow Refresh via API Fails</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Dataflow-Refresh-via-API-Fails/m-p/1704149#M28209</link>
      <description>&lt;P&gt;I know its been awhile but I am facing the same error with dataflows. Have you ever figured it out?&lt;/P&gt;</description>
      <pubDate>Thu, 04 Mar 2021 22:47:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Dataflow-Refresh-via-API-Fails/m-p/1704149#M28209</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-03-04T22:47:53Z</dc:date>
    </item>
    <item>
      <title>Re: Dataflow Refresh via API Fails</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Dataflow-Refresh-via-API-Fails/m-p/1709270#M28267</link>
      <description>&lt;P&gt;We've resolved the issue. Posting here in case anybody else encountes the same problem. The problem was in the way API was called. Although during the call, part of the header we defined "Content-Type": "application/json", when passing&lt;BR /&gt;body = {'notifyOption': "MailOnFailure"} as data=body in the call was causing the error above.&lt;BR /&gt;response = requests.post(url=url, headers=headers, data=body.....)&lt;BR /&gt;&lt;BR /&gt;After changing to&lt;BR /&gt;response = requests.post(url=url, headers=headers, json=body...) everything works.&lt;BR /&gt;It is strange that the same construct with data=body works fine with dataset referesh.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Mar 2021 15:04:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Dataflow-Refresh-via-API-Fails/m-p/1709270#M28267</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-03-08T15:04:18Z</dc:date>
    </item>
  </channel>
</rss>

