<?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 Disabling a refresh schedule throws Bad Request in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Disabling-a-refresh-schedule-throws-Bad-Request/m-p/2219995#M33279</link>
    <description>&lt;P&gt;Hi, I am trying to disable a scheduled refresh on a dataset, using Power BI for C#. I can sucessfully add a scheduled refresh by using the below code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;var refreshSchedule = new RefreshSchedule(days, times, true, "UTC", ScheduleNotifyOption.NoNotification);&lt;BR /&gt;powerBiClient.Datasets.UpdateRefreshScheduleInGroup(new Guid(workspaceId), datasetId, refreshSchedule);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to retrieve the existing schedule and setting Enabled = false,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;var refreshSchedule = powerBiClient.Datasets.GetRefreshScheduleInGroup(new Guid(workspaceId), datasetId);&lt;BR /&gt;refreshSchedule.Enabled = false;&lt;BR /&gt;powerBiClient.Datasets.UpdateRefreshScheduleInGroup(new Guid(workspaceId), datasetId, refreshSchedule);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;as well as just adding a new, disabled schedule,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;var refreshSchedule = new RefreshSchedule(null, null, false, "UTC", ScheduleNotifyOption.NoNotification);&lt;BR /&gt;powerBiClient.Datasets.UpdateRefreshScheduleInGroup(new Guid(workspaceId), datasetId, refreshSchedule);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but either ways throws a Bad Request error.&lt;/P&gt;</description>
    <pubDate>Fri, 03 Dec 2021 12:35:44 GMT</pubDate>
    <dc:creator>janfcarl</dc:creator>
    <dc:date>2021-12-03T12:35:44Z</dc:date>
    <item>
      <title>Disabling a refresh schedule throws Bad Request</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Disabling-a-refresh-schedule-throws-Bad-Request/m-p/2219995#M33279</link>
      <description>&lt;P&gt;Hi, I am trying to disable a scheduled refresh on a dataset, using Power BI for C#. I can sucessfully add a scheduled refresh by using the below code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;var refreshSchedule = new RefreshSchedule(days, times, true, "UTC", ScheduleNotifyOption.NoNotification);&lt;BR /&gt;powerBiClient.Datasets.UpdateRefreshScheduleInGroup(new Guid(workspaceId), datasetId, refreshSchedule);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to retrieve the existing schedule and setting Enabled = false,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;var refreshSchedule = powerBiClient.Datasets.GetRefreshScheduleInGroup(new Guid(workspaceId), datasetId);&lt;BR /&gt;refreshSchedule.Enabled = false;&lt;BR /&gt;powerBiClient.Datasets.UpdateRefreshScheduleInGroup(new Guid(workspaceId), datasetId, refreshSchedule);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;as well as just adding a new, disabled schedule,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;var refreshSchedule = new RefreshSchedule(null, null, false, "UTC", ScheduleNotifyOption.NoNotification);&lt;BR /&gt;powerBiClient.Datasets.UpdateRefreshScheduleInGroup(new Guid(workspaceId), datasetId, refreshSchedule);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but either ways throws a Bad Request error.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Dec 2021 12:35:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Disabling-a-refresh-schedule-throws-Bad-Request/m-p/2219995#M33279</guid>
      <dc:creator>janfcarl</dc:creator>
      <dc:date>2021-12-03T12:35:44Z</dc:date>
    </item>
    <item>
      <title>Re: Disabling a refresh schedule throws Bad Request</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Disabling-a-refresh-schedule-throws-Bad-Request/m-p/2221083#M33287</link>
      <description>&lt;P&gt;Does it work in the REST API sandbox?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/rest/api/power-bi/datasets/update-refresh-schedule-in-group" target="_blank"&gt;Datasets - Update Refresh Schedule In Group - REST API (Power BI Power BI REST APIs) | Microsoft Docs&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 04 Dec 2021 21:27:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Disabling-a-refresh-schedule-throws-Bad-Request/m-p/2221083#M33287</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2021-12-04T21:27:23Z</dc:date>
    </item>
    <item>
      <title>Re: Disabling a refresh schedule throws Bad Request</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Disabling-a-refresh-schedule-throws-Bad-Request/m-p/2229150#M33356</link>
      <description>&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/236356"&gt;@janfcarl&lt;/a&gt;,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;What type of workspace and contents are you working on? Any specific setting that you apply to the content you used? Have you confirmed the permission setting that API required? Please share some more detail bout these operations to help us clarify and reproduce the scenario:&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: tahoma; font-size: 11.0pt;"&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&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;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;In addition, have you tried to directly test on the rest API document with 'try it' option?&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Regards,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Xiaoxin Sheng&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Dec 2021 02:43:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Disabling-a-refresh-schedule-throws-Bad-Request/m-p/2229150#M33356</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-12-09T02:43:45Z</dc:date>
    </item>
  </channel>
</rss>

