<?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 callAsync PowerBI Refresh not working in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/callAsync-PowerBI-Refresh-not-working/m-p/4915353#M64317</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am refreshing PowerBI through an ADF pipeline and I am calling the endpoint specified in this [documentation](&lt;A href="https://learn.microsoft.com/en-us/power-bi/connect-data/asynchronous-refresh" target="_blank" rel="noopener"&gt;https://learn.microsoft.com/en-us/power-bi/connect-data/asynchronous-refresh&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;It says it should return a 202 (async) but it returns a 200 (sync). Why is it not working as it is documented?&lt;BR /&gt;The dataset I am refreshing is in a worksapce that is on a premium per-user license.&lt;/P&gt;&lt;P&gt;This is the part of the pipeline that does the call:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt; {
                "name": "Call dataset refresh",
                "type": "WebActivity",
                "dependsOn": [
                    {
                        "activity": "Set Access token",
                        "dependencyConditions": [
                            "Succeeded"
                        ]
                    }
                ],
                "policy": {
                    "timeout": "0.00:05:00",
                    "retry": 0,
                    "retryIntervalInSeconds": 30,
                    "secureOutput": false,
                    "secureInput": true
                },
                "userProperties": [],
                "typeProperties": {
                    "method": "POST",
                    "headers": {
                        "Authorization": {
                            "value": "@variables('AccessToken')",
                            "type": "Expression"
                        },
                        "Prefer": "respond-async"
                    },
                    "url": {
                        "value": "@concat('https://api.powerbi.com/v1.0/myorg/groups/',pipeline().parameters.workspaceGuid,'/datasets/',pipeline().parameters.datasetGuid,'/refreshes')",
                        "type": "Expression"
                    },
                    "body": {
                        "value": "@pipeline().parameters.PowerBI_Refresh_API_Body",
                        "type": "Expression"
                    }
                }
            },&lt;/LI-CODE&gt;</description>
    <pubDate>Fri, 09 Jan 2026 10:55:56 GMT</pubDate>
    <dc:creator>sebnickel</dc:creator>
    <dc:date>2026-01-09T10:55:56Z</dc:date>
    <item>
      <title>callAsync PowerBI Refresh not working</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/callAsync-PowerBI-Refresh-not-working/m-p/4915353#M64317</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am refreshing PowerBI through an ADF pipeline and I am calling the endpoint specified in this [documentation](&lt;A href="https://learn.microsoft.com/en-us/power-bi/connect-data/asynchronous-refresh" target="_blank" rel="noopener"&gt;https://learn.microsoft.com/en-us/power-bi/connect-data/asynchronous-refresh&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;It says it should return a 202 (async) but it returns a 200 (sync). Why is it not working as it is documented?&lt;BR /&gt;The dataset I am refreshing is in a worksapce that is on a premium per-user license.&lt;/P&gt;&lt;P&gt;This is the part of the pipeline that does the call:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt; {
                "name": "Call dataset refresh",
                "type": "WebActivity",
                "dependsOn": [
                    {
                        "activity": "Set Access token",
                        "dependencyConditions": [
                            "Succeeded"
                        ]
                    }
                ],
                "policy": {
                    "timeout": "0.00:05:00",
                    "retry": 0,
                    "retryIntervalInSeconds": 30,
                    "secureOutput": false,
                    "secureInput": true
                },
                "userProperties": [],
                "typeProperties": {
                    "method": "POST",
                    "headers": {
                        "Authorization": {
                            "value": "@variables('AccessToken')",
                            "type": "Expression"
                        },
                        "Prefer": "respond-async"
                    },
                    "url": {
                        "value": "@concat('https://api.powerbi.com/v1.0/myorg/groups/',pipeline().parameters.workspaceGuid,'/datasets/',pipeline().parameters.datasetGuid,'/refreshes')",
                        "type": "Expression"
                    },
                    "body": {
                        "value": "@pipeline().parameters.PowerBI_Refresh_API_Body",
                        "type": "Expression"
                    }
                }
            },&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 09 Jan 2026 10:55:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/callAsync-PowerBI-Refresh-not-working/m-p/4915353#M64317</guid>
      <dc:creator>sebnickel</dc:creator>
      <dc:date>2026-01-09T10:55:56Z</dc:date>
    </item>
    <item>
      <title>Re: callAsync PowerBI Refresh not working</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/callAsync-PowerBI-Refresh-not-working/m-p/4915874#M64321</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1507170"&gt;@sebnickel&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Thank you for reaching out to the Microsoft Fabric Community Forum.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P data-start="120" data-end="731"&gt;The behaviour you are seeing is expected based on your workspace setup. Even though the Prefer: respond-async header is included, asynchronous dataset refresh is only supported when the workspace is hosted on Premium capacity (P/EM/A SKU). Since your dataset is currently in a Premium Per User (PPU) workspace, Power BI automatically switches to a synchronous refresh, which returns 200 OK, rather than the expected 202 Accepted. So, your call is correct, but async mode isn’t enabled on PPU.&lt;BR /&gt;&lt;BR /&gt;If you want asynchronous behaviour (202 + refresh operation ID), the workspace will need to be moved to Premium capacity. If you continue using PPU, refreshes will still run successfully just synchronously so a 200 response is expected. &lt;BR /&gt;&lt;BR /&gt;More details are available here in Microsoft’s documentation:&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-gb/power-bi/connect-data/asynchronous-refresh#requirements" target="_blank"&gt;Enhanced refresh with the Power BI REST API - Power BI | Microsoft Learn&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Hope that clarifies. Let us know if you have any doubts regarding this. We will be happy to help.&lt;/P&gt;
&lt;P&gt;Thank you for using the Microsoft Fabric Community Forum.&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jan 2026 10:40:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/callAsync-PowerBI-Refresh-not-working/m-p/4915874#M64321</guid>
      <dc:creator>v-kpoloju-msft</dc:creator>
      <dc:date>2026-01-10T10:40:12Z</dc:date>
    </item>
    <item>
      <title>Re: callAsync PowerBI Refresh not working</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/callAsync-PowerBI-Refresh-not-working/m-p/4916259#M64323</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1507170"&gt;@sebnickel&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I hope you are doing well today ☺️&lt;span class="lia-unicode-emoji" title=":red_heart:"&gt;❤️&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So This is expected behavior in some cases that is the Power BI Refresh API only returns &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;202 Accepted&lt;/STRONG&gt;&lt;/FONT&gt; (async) when an &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;enhanced refresh&lt;/STRONG&gt;&lt;/FONT&gt; is actually triggered&amp;nbsp;If the request body doesnt include &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;enhanced refresh parameters&lt;/STRONG&gt;&lt;/FONT&gt; (for example type, commitMode and objects, etc....) &lt;STRONG&gt;&lt;FONT color="#99CC00"&gt;Power BI treats it as a standard refresh which returns 200 OK&lt;/FONT&gt;&lt;/STRONG&gt; (synchronous) even if you send the header:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Prefer: respond-async&lt;/LI-CODE&gt;&lt;P&gt;&lt;FONT size="4" color="#33CCCC"&gt;&lt;STRONG&gt;Also&lt;/STRONG&gt; &lt;/FONT&gt;even Enhanced Refresh is documented as supported for Premium Per User (PPU) in practice PPU workspaces may still execute refreshes synchronously [&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;Consistent async behavior&lt;/STRONG&gt;&lt;/FONT&gt; (Like 202 + Location header) is reliably returned only &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;on Premium capacity&lt;/STRONG&gt; &lt;/FONT&gt;(&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;PSKUs / Embedded&lt;/STRONG&gt;&lt;/FONT&gt;)]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="4" color="#FFCC00"&gt;Finally &lt;/FONT&gt;&lt;/STRONG&gt;ADF Web Activity may not expose response headers so even if Power BI returns 202 ADF can appear to return 200.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;&lt;FONT size="4"&gt;What do you do now?&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;You need to check &lt;FONT color="#FF6600"&gt;&lt;STRONG&gt;some points&lt;/STRONG&gt; &lt;/FONT&gt;like:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;Ensure your POST body includes enhanced refresh options ("type": "Full")&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Test the same call via Postman or curl to confirm the real HTTP status&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;If you need guaranteed async behavior, move the dataset to Premium capacity&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;If using ADF consider polling &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;GET /refreshes&lt;/STRONG&gt; &lt;/FONT&gt;instead of relying &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;on response headers&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Also I recommend you to check the &lt;FONT color="#00FF00"&gt;&lt;STRONG&gt;official Documentation&amp;nbsp;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;FONT color="#00FF00"&gt;&lt;STRONG&gt;&lt;A href="https://learn.microsoft.com/en-us/power-bi/connect-data/asynchronous-refresh" target="_self"&gt;Enhanced refresh with the Power BI REST API&lt;/A&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;EM&gt;if this post helps, then I would appreciate a thumbs up&lt;/EM&gt;&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;&lt;EM&gt;and&amp;nbsp;&lt;STRONG&gt;mark it as the solution&lt;/STRONG&gt;&amp;nbsp;&lt;/EM&gt;&lt;EM&gt;to help the other members find it more quickly.&lt;/EM&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 11 Jan 2026 22:59:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/callAsync-PowerBI-Refresh-not-working/m-p/4916259#M64323</guid>
      <dc:creator>Ahmed-Elfeel</dc:creator>
      <dc:date>2026-01-11T22:59:14Z</dc:date>
    </item>
    <item>
      <title>Re: callAsync PowerBI Refresh not working</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/callAsync-PowerBI-Refresh-not-working/m-p/4917343#M64342</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1507170"&gt;@sebnickel&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;Just checking in to see if the issue has been resolved on your end. If the earlier suggestions helped, that’s great to hear! And if you’re still facing challenges, feel free to share more details happy to assist further.&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jan 2026 12:16:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/callAsync-PowerBI-Refresh-not-working/m-p/4917343#M64342</guid>
      <dc:creator>v-kpoloju-msft</dc:creator>
      <dc:date>2026-01-13T12:16:05Z</dc:date>
    </item>
    <item>
      <title>Re: callAsync PowerBI Refresh not working</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/callAsync-PowerBI-Refresh-not-working/m-p/4920354#M64356</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1507170"&gt;@sebnickel&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;Just wanted to follow up. If the shared guidance worked for you, that’s wonderful hopefully it also helps others looking for similar answers. If there’s anything else you'd like to explore or clarify, don’t hesitate to reach out.&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jan 2026 04:29:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/callAsync-PowerBI-Refresh-not-working/m-p/4920354#M64356</guid>
      <dc:creator>v-kpoloju-msft</dc:creator>
      <dc:date>2026-01-19T04:29:09Z</dc:date>
    </item>
  </channel>
</rss>

