<?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: Has anyone gotten this API to disable a Direct Query refresh that is enabled? in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Has-anyone-gotten-this-API-to-disable-a-Direct-Query-refresh/m-p/3961918#M52979</link>
    <description>&lt;P&gt;Thanks for replying.&amp;nbsp;&lt;BR /&gt;I have reviewed all of the links you provided.&lt;BR /&gt;I tried the suggestions in all, with no success.&lt;/P&gt;&lt;P&gt;I am first trying to disable a scheduled Direct Query Refresh in the Leaning Microsoft test page.&lt;BR /&gt;&lt;BR /&gt;And this is also not working here either.&lt;BR /&gt;I am using the exact JSON body in the example:&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="mbutler71_0-1717089677458.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1108534i5C844E63F93E1B74/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mbutler71_0-1717089677458.png" alt="mbutler71_0-1717089677458.png" /&gt;&lt;/span&gt;&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="mbutler71_1-1717089773988.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1108535i3CD8C9213F90F1A3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mbutler71_1-1717089773988.png" alt="mbutler71_1-1717089773988.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>Thu, 30 May 2024 17:23:00 GMT</pubDate>
    <dc:creator>mbutler71</dc:creator>
    <dc:date>2024-05-30T17:23:00Z</dc:date>
    <item>
      <title>Has anyone gotten this API to disable a Direct Query refresh that is enabled?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Has-anyone-gotten-this-API-to-disable-a-Direct-Query-refresh/m-p/3958954#M52945</link>
      <description>&lt;DIV&gt;&lt;H1&gt;Datasets - Update Direct Query Refresh Schedule&lt;/H1&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;datasets/$DatasetId/directQueryRefreshSchedule&lt;BR /&gt;&lt;BR /&gt;Has anyone got this to work?&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;Trying to run this API and using the example on the Microsoft site:&lt;/DIV&gt;&lt;DIV&gt;&lt;A href="https://learn.microsoft.com/en-us/rest/api/power-bi/datasets/update-direct-query-refresh-schedule#code-try-0" target="_blank" rel="noopener"&gt;https://learn.microsoft.com/en-us/rest/api/power-bi/datasets/update-direct-query-refresh-schedule#code-try-0&lt;/A&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;BR /&gt;With this JSON Body:&amp;nbsp;&lt;BR /&gt;&lt;SPAN&gt;{ &lt;/SPAN&gt;&lt;SPAN class=""&gt;"value"&lt;/SPAN&gt;&lt;SPAN&gt;: { &lt;/SPAN&gt;&lt;SPAN class=""&gt;"enabled"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN class=""&gt;false&lt;/SPAN&gt;&lt;SPAN&gt; } }&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;This always brings back a 400 error:&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;{"error": {"code": "BadRequest","message": "Bad Request","details": [{"message": "Value cannot be null.\r\nParameter name: nullableType","target": "datasetDQRefreshSchedule"}]}}&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 29 May 2024 20:12:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Has-anyone-gotten-this-API-to-disable-a-Direct-Query-refresh/m-p/3958954#M52945</guid>
      <dc:creator>mbutler71</dc:creator>
      <dc:date>2024-05-29T20:12:46Z</dc:date>
    </item>
    <item>
      <title>Re: Has anyone gotten this API to disable a Direct Query refresh that is enabled?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Has-anyone-gotten-this-API-to-disable-a-Direct-Query-refresh/m-p/3959326#M52949</link>
      <description>&lt;P&gt;Hi&amp;nbsp; &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/286027"&gt;@mbutler71&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Make sure that your request contains all required parameters and that the access token used has the necessary permissions (The user must be the dataset owner).&lt;/P&gt;
&lt;P&gt;There may be issues with the body of the request, be careful with how the attributes are set, make sure there are no trailing commas or syntax errors in the actual body of the request to be sent, and the JSON structure needs to conform to the API's expectations.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is the related document, you can view this content:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Service/Power-BI-API-doesn-t-disable-Direct-Query-but-example-on/m-p/2767748" target="_blank"&gt;Solved: Re: Power BI API doesn't disable Direct Query, but... - Microsoft Fabric Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/78447634/what-is-the-correct-json-body-to-disable-powerbi-schedule-refresh-via-api" target="_blank"&gt;What is the correct JSON body to disable PowerBi Schedule Refresh via API - Stack Overflow&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Developer/Keep-getting-a-400-Bad-Request-error-when-trying-to-update/m-p/1691372" target="_blank"&gt;Solved: Keep getting a 400 Bad Request error when trying t... - Microsoft Fabric Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Liu Yang&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;EM&gt;Accept it as the solution&lt;/EM&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2024 02:16:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Has-anyone-gotten-this-API-to-disable-a-Direct-Query-refresh/m-p/3959326#M52949</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-05-30T02:16:23Z</dc:date>
    </item>
    <item>
      <title>Re: Has anyone gotten this API to disable a Direct Query refresh that is enabled?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Has-anyone-gotten-this-API-to-disable-a-Direct-Query-refresh/m-p/3961918#M52979</link>
      <description>&lt;P&gt;Thanks for replying.&amp;nbsp;&lt;BR /&gt;I have reviewed all of the links you provided.&lt;BR /&gt;I tried the suggestions in all, with no success.&lt;/P&gt;&lt;P&gt;I am first trying to disable a scheduled Direct Query Refresh in the Leaning Microsoft test page.&lt;BR /&gt;&lt;BR /&gt;And this is also not working here either.&lt;BR /&gt;I am using the exact JSON body in the example:&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="mbutler71_0-1717089677458.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1108534i5C844E63F93E1B74/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mbutler71_0-1717089677458.png" alt="mbutler71_0-1717089677458.png" /&gt;&lt;/span&gt;&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="mbutler71_1-1717089773988.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1108535i3CD8C9213F90F1A3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mbutler71_1-1717089773988.png" alt="mbutler71_1-1717089773988.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>Thu, 30 May 2024 17:23:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Has-anyone-gotten-this-API-to-disable-a-Direct-Query-refresh/m-p/3961918#M52979</guid>
      <dc:creator>mbutler71</dc:creator>
      <dc:date>2024-05-30T17:23:00Z</dc:date>
    </item>
  </channel>
</rss>

