<?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: ModelRefreshFailed_CredentialsNotSpecified for any API refresh call in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/ModelRefreshFailed-CredentialsNotSpecified-for-any-API-refresh/m-p/1779430#M28918</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/295091"&gt;@cgroth&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Whether the report can refresh in Power BI Desktop successfully? How did you create Cosmos database account? You can refer the content in the following blog to make schedule refresh for Cosmos dataset:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.cdata.com/kb/tech/cosmosdb-powerbi-gateway.rst#Refresh-a-Dataset_j2qi2id81" target="_self"&gt;&lt;STRONG&gt;Publish Real-Time Cosmos DB Data to PowerBI.com&lt;/STRONG&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
    <pubDate>Mon, 12 Apr 2021 07:28:46 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-04-12T07:28:46Z</dc:date>
    <item>
      <title>ModelRefreshFailed_CredentialsNotSpecified for any API refresh call</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/ModelRefreshFailed-CredentialsNotSpecified-for-any-API-refresh/m-p/1775516#M28859</link>
      <description>&lt;P&gt;We are having an issue with the POST request to the /refreshes endpoint. This is the endpoint for telling the dataset to refresh, say, after updating the parameters, for example.&lt;BR /&gt;&lt;BR /&gt;We are able to SEND the request no problem. We get a 202 'Accepted'. We expect this.&lt;BR /&gt;&lt;BR /&gt;The issue arrives when we get the refresh history. We see that our last refresh fails with the following response from GET /refreshes (the endpoint that gives you the Dataset's refresh history) : &lt;FONT color="#FF0000"&gt;ModelRefreshFailed_CredentialsNotSpecified&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{
id: XXXXXXXXXX,
refreshType: 'ViaApi',
startTime: '2021-04-08T22:52:56.963Z',
endTime: '2021-04-08T22:52:57.023Z',
serviceExceptionJson: '{"errorCode":"ModelRefreshFailed_CredentialsNotSpecified"}',
status: 'Failed',
requestId: XXXXXXXXXXXXX'
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Through Postman and through our NodeJS server, our refresh commands are failing. In the attached image, you will see one 'Completed' refresh. That is the one we fired manually from the PowerBi-web app.&lt;BR /&gt;&lt;BR /&gt;What We've Tried:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;We tried editing the data source's credentials with the Blob storage Account Key. &lt;A href="https://community.powerbi.com/t5/Developer/ModelRefreshFailed-CredentialsNotSpecified-when-Refresh-DataSet/m-p/1543955/highlight/true#M26741" target="_self"&gt;See here.&lt;/A&gt; Same result before and after.&lt;/LI&gt;&lt;LI&gt;We tried firing the request through the &lt;A href="https://docs.microsoft.com/en-us/rest/api/power-bi/datasets/refreshdataset#code-try-0" target="_self"&gt;"Try it" option here&lt;/A&gt;. That one still fails as well. (See the below refresh history).&lt;/LI&gt;&lt;LI&gt;We also tried making sure our requests from Postman and Node were formatted correctly etc. To the best of our knowledge, they are.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;The Postman and node requests are correct as we are getting only 200 and 202s.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Here is the error that shows up under Dataset/Settings about the last refresh:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800000"&gt;Last refresh failed: Thu Apr 08 2021 17:05:55 GMT-0600 (Mountain Daylight Time)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800000"&gt;The refresh failed for this model. Expand the technical details for more info.Hide details&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800000"&gt;Data source error: It looks like scheduled refresh failed because at least one data source is missing credentials. To start the refresh again, go to this dataset's settings page and enter credentials for all data sources.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800000"&gt;Cluster URI: WABI-WEST-US-B-PRIMARY-redirect.analysis.windows.net&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800000"&gt;Activity ID: 00000000-0000-0000-0000-000000000000&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800000"&gt;Request ID: XXXXXXXXXXXXX&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800000"&gt;Time: 2021-04-08 23:05:55Z&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT color="#800000"&gt;4/8/2021, 5:05:55 PM 4/8/2021, 5:05:55 PM Failed The refresh failed for this model. Expand the technical details for more info.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800000"&gt;4/8/2021, 5:04:31 PM 4/8/2021, 5:04:31 PM Failed The refresh failed for this model. Expand the technical details for more info.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800000"&gt;4/8/2021, 5:02:50 PM 4/8/2021, 5:02:50 PM Failed The refresh failed for this model. Expand the technical details for more info.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800000"&gt;On demand 4/8/2021, 5:02:10 PM 4/8/2021, 5:02:30 PM Completed&lt;FONT color="#000000"&gt; &lt;STRONG&gt;(Done manually)&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800000"&gt;4/8/2021, 5:00:20 PM 4/8/2021, 5:00:20 PM Failed The refresh failed for this model. Expand the technical details for more info.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800000"&gt;4/8/2021, 5:00:10 PM 4/8/2021, 5:00:10 PM Failed The refresh failed for this model. Expand the technical details for more info.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800000"&gt;4/8/2021, 4:52:56 PM 4/8/2021, 4:52:57 PM Failed The refresh failed for this model. Expand the technical details for more info.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Apr 2021 00:02:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/ModelRefreshFailed-CredentialsNotSpecified-for-any-API-refresh/m-p/1775516#M28859</guid>
      <dc:creator>cgroth</dc:creator>
      <dc:date>2021-04-09T00:02:53Z</dc:date>
    </item>
    <item>
      <title>Re: ModelRefreshFailed_CredentialsNotSpecified for any API refresh call</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/ModelRefreshFailed-CredentialsNotSpecified-for-any-API-refresh/m-p/1779430#M28918</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/295091"&gt;@cgroth&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Whether the report can refresh in Power BI Desktop successfully? How did you create Cosmos database account? You can refer the content in the following blog to make schedule refresh for Cosmos dataset:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.cdata.com/kb/tech/cosmosdb-powerbi-gateway.rst#Refresh-a-Dataset_j2qi2id81" target="_self"&gt;&lt;STRONG&gt;Publish Real-Time Cosmos DB Data to PowerBI.com&lt;/STRONG&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Mon, 12 Apr 2021 07:28:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/ModelRefreshFailed-CredentialsNotSpecified-for-any-API-refresh/m-p/1779430#M28918</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-04-12T07:28:46Z</dc:date>
    </item>
    <item>
      <title>Re: ModelRefreshFailed_CredentialsNotSpecified for any API refresh call</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/ModelRefreshFailed-CredentialsNotSpecified-for-any-API-refresh/m-p/1780428#M28929</link>
      <description>&lt;P&gt;This is all being done on&amp;nbsp; Linux. So, no Power BI Desktop.&lt;BR /&gt;&lt;BR /&gt;Also, I am using Blob storage, no Cosmos DB.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Apr 2021 14:54:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/ModelRefreshFailed-CredentialsNotSpecified-for-any-API-refresh/m-p/1780428#M28929</guid>
      <dc:creator>cgroth</dc:creator>
      <dc:date>2021-04-12T14:54:03Z</dc:date>
    </item>
  </channel>
</rss>

