<?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 Is a data refresh required after changing the datasource connection using the powerbi API? in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Is-a-data-refresh-required-after-changing-the-datasource/m-p/624810#M18577</link>
    <description>&lt;P&gt;Here is the scenario:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. I use the api (&lt;A href="https://docs.microsoft.com/en-us/rest/api/power-bi/datasets/updatedatasourcesingroup" target="_blank" rel="noopener"&gt;https://docs.microsoft.com/en-us/rest/api/power-bi/datasets/updatedatasourcesingroup&lt;/A&gt;) to change a dataset connection (database/server/login credentials). This works fine.&lt;/P&gt;&lt;P&gt;2. The reports that use this datasource that was updated in above step are using import mode. So I need to get the new data into the report.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So here is the question. I have noticed sometimes that the datasource will automatically start a refresh after calling the UpdateDatasources and sometime will not. So programmatically I am always calling the API (&lt;A href="https://docs.microsoft.com/en-us/rest/api/power-bi/datasets/refreshdataset" target="_blank" rel="noopener"&gt;https://docs.microsoft.com/en-us/rest/api/power-bi/datasets/refreshdataset&lt;/A&gt;) to do data refresh after the update. But based upon the help documentation (&lt;A href="https://docs.microsoft.com/en-us/rest/api/power-bi/datasets/updatedatasourcesingroup" target="_blank" rel="noopener"&gt;https://docs.microsoft.com/en-us/rest/api/power-bi/datasets/updatedatasourcesingroup&lt;/A&gt;) it states something about waiting 30 minutes before doing a refresh, but I am not sure if this applies?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So is it ok to call a refresh after doing a datasource connection update, or do I need to wait 30 minutes, or will it automatically refresh after some time. Please note, I am not discussing dataset scheduling in this post ad I am already doing this. I am only addressing the issue after a datasource connection update has been just completed using the API.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the help.&lt;/P&gt;</description>
    <pubDate>Fri, 15 Feb 2019 22:16:17 GMT</pubDate>
    <dc:creator>Dan2</dc:creator>
    <dc:date>2019-02-15T22:16:17Z</dc:date>
    <item>
      <title>Is a data refresh required after changing the datasource connection using the powerbi API?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Is-a-data-refresh-required-after-changing-the-datasource/m-p/624810#M18577</link>
      <description>&lt;P&gt;Here is the scenario:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. I use the api (&lt;A href="https://docs.microsoft.com/en-us/rest/api/power-bi/datasets/updatedatasourcesingroup" target="_blank" rel="noopener"&gt;https://docs.microsoft.com/en-us/rest/api/power-bi/datasets/updatedatasourcesingroup&lt;/A&gt;) to change a dataset connection (database/server/login credentials). This works fine.&lt;/P&gt;&lt;P&gt;2. The reports that use this datasource that was updated in above step are using import mode. So I need to get the new data into the report.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So here is the question. I have noticed sometimes that the datasource will automatically start a refresh after calling the UpdateDatasources and sometime will not. So programmatically I am always calling the API (&lt;A href="https://docs.microsoft.com/en-us/rest/api/power-bi/datasets/refreshdataset" target="_blank" rel="noopener"&gt;https://docs.microsoft.com/en-us/rest/api/power-bi/datasets/refreshdataset&lt;/A&gt;) to do data refresh after the update. But based upon the help documentation (&lt;A href="https://docs.microsoft.com/en-us/rest/api/power-bi/datasets/updatedatasourcesingroup" target="_blank" rel="noopener"&gt;https://docs.microsoft.com/en-us/rest/api/power-bi/datasets/updatedatasourcesingroup&lt;/A&gt;) it states something about waiting 30 minutes before doing a refresh, but I am not sure if this applies?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So is it ok to call a refresh after doing a datasource connection update, or do I need to wait 30 minutes, or will it automatically refresh after some time. Please note, I am not discussing dataset scheduling in this post ad I am already doing this. I am only addressing the issue after a datasource connection update has been just completed using the API.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the help.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Feb 2019 22:16:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Is-a-data-refresh-required-after-changing-the-datasource/m-p/624810#M18577</guid>
      <dc:creator>Dan2</dc:creator>
      <dc:date>2019-02-15T22:16:17Z</dc:date>
    </item>
    <item>
      <title>Re: Is a data refresh required after changing the datasource connection using the powerbi API?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Is-a-data-refresh-required-after-changing-the-datasource/m-p/634177#M18658</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can see in the datasets tab in Power BI Service when the next refresh will happen.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my case i also called the refreashdataset after an update of the datasource and hit the limit very quickly. So i just leave it for the automatic refresh for now.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Feb 2019 11:53:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Is-a-data-refresh-required-after-changing-the-datasource/m-p/634177#M18658</guid>
      <dc:creator>Bbooogie</dc:creator>
      <dc:date>2019-02-28T11:53:36Z</dc:date>
    </item>
  </channel>
</rss>

