<?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 ModelRefreshFailed_CredentialsNotSpecified when Refresh DataSet in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/ModelRefreshFailed-CredentialsNotSpecified-when-Refresh-DataSet/m-p/817074#M21080</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a report with Cosmos as data source. After some data of&amp;nbsp;Cosmos change, I want to force a refresh for PBI report updates.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Post&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://api.powerbi.com/v1.0/myorg/groups/{{groupId}}/datasets/{{datasetId}}/refreshes" target="_blank" rel="noopener"&gt;https://api.powerbi.com/v1.0/myorg/groups/{{groupId}}/datasets/{{datasetId}}/refreshes&lt;/A&gt;&lt;/P&gt;&lt;P&gt;it returns 202.&lt;/P&gt;&lt;P&gt;while by&amp;nbsp;&lt;/P&gt;&lt;P&gt;GET&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://api.powerbi.com/v1.0/myorg/groups/{{groupId}}/datasets/{{datasetId}}/refreshes" target="_blank" rel="noopener"&gt;https://api.powerbi.com/v1.0/myorg/groups/{{groupId}}/datasets/{{datasetId}}/refreshes&lt;/A&gt;&lt;/P&gt;&lt;P&gt;the history tells the error below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{
      "id": 225716337,
      "refreshType": "ViaApi",
      "startTime": "2019-10-14T08:48:15.39Z",
      "endTime": "2019-10-14T08:48:15.453Z",
      "serviceExceptionJson": "{\"errorCode\":\"ModelRefreshFailed_CredentialsNotSpecified\"}",
      "status": "Failed",
      "requestId": "65b98616-85fd-4535-a978-d9ff2ca9764c"
    }&lt;/PRE&gt;&lt;P&gt;The token is prcoceeded by the steps:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. get openId token by&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://login.microsoftonline.com/common/oauth2/token" target="_blank" rel="noopener"&gt;https://login.microsoftonline.com/common/oauth2/token&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;payload:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;headers: 
   {  
     Authorization: 'Bearer {{openid token}}
}&lt;/PRE&gt;&lt;PRE&gt;form: 
   { client_id: '{{my client id}}',
     scope: 'openid',
     resource: 'https://analysis.windows.net/powerbi/api',
     username: '{{my account name}}',
     password: '{{my password}}',
     grant_type: 'password'
 }&lt;/PRE&gt;&lt;P&gt;2. get access token of dataset:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://api.powerbi.com/v1.0/myorg/groups/" target="_blank" rel="noopener"&gt;https://api.powerbi.com/v1.0/myorg/groups/&lt;/A&gt;&lt;SPAN class="resolvedVariable"&gt;{{groupId}}&lt;/SPAN&gt;/datasets/&lt;SPAN class="resolvedVariable"&gt;{{datasetId}}&lt;/SPAN&gt;/GenerateToken&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;header:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;headers: 
   { 
     Authorization: 'Bearer {{openid token}}
}&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;Could you check what I missed? Thank you!&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 14 Oct 2019 09:24:34 GMT</pubDate>
    <dc:creator>XiaodongLiang</dc:creator>
    <dc:date>2019-10-14T09:24:34Z</dc:date>
    <item>
      <title>ModelRefreshFailed_CredentialsNotSpecified when Refresh DataSet</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/ModelRefreshFailed-CredentialsNotSpecified-when-Refresh-DataSet/m-p/817074#M21080</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a report with Cosmos as data source. After some data of&amp;nbsp;Cosmos change, I want to force a refresh for PBI report updates.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Post&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://api.powerbi.com/v1.0/myorg/groups/{{groupId}}/datasets/{{datasetId}}/refreshes" target="_blank" rel="noopener"&gt;https://api.powerbi.com/v1.0/myorg/groups/{{groupId}}/datasets/{{datasetId}}/refreshes&lt;/A&gt;&lt;/P&gt;&lt;P&gt;it returns 202.&lt;/P&gt;&lt;P&gt;while by&amp;nbsp;&lt;/P&gt;&lt;P&gt;GET&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://api.powerbi.com/v1.0/myorg/groups/{{groupId}}/datasets/{{datasetId}}/refreshes" target="_blank" rel="noopener"&gt;https://api.powerbi.com/v1.0/myorg/groups/{{groupId}}/datasets/{{datasetId}}/refreshes&lt;/A&gt;&lt;/P&gt;&lt;P&gt;the history tells the error below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{
      "id": 225716337,
      "refreshType": "ViaApi",
      "startTime": "2019-10-14T08:48:15.39Z",
      "endTime": "2019-10-14T08:48:15.453Z",
      "serviceExceptionJson": "{\"errorCode\":\"ModelRefreshFailed_CredentialsNotSpecified\"}",
      "status": "Failed",
      "requestId": "65b98616-85fd-4535-a978-d9ff2ca9764c"
    }&lt;/PRE&gt;&lt;P&gt;The token is prcoceeded by the steps:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. get openId token by&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://login.microsoftonline.com/common/oauth2/token" target="_blank" rel="noopener"&gt;https://login.microsoftonline.com/common/oauth2/token&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;payload:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;headers: 
   {  
     Authorization: 'Bearer {{openid token}}
}&lt;/PRE&gt;&lt;PRE&gt;form: 
   { client_id: '{{my client id}}',
     scope: 'openid',
     resource: 'https://analysis.windows.net/powerbi/api',
     username: '{{my account name}}',
     password: '{{my password}}',
     grant_type: 'password'
 }&lt;/PRE&gt;&lt;P&gt;2. get access token of dataset:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://api.powerbi.com/v1.0/myorg/groups/" target="_blank" rel="noopener"&gt;https://api.powerbi.com/v1.0/myorg/groups/&lt;/A&gt;&lt;SPAN class="resolvedVariable"&gt;{{groupId}}&lt;/SPAN&gt;/datasets/&lt;SPAN class="resolvedVariable"&gt;{{datasetId}}&lt;/SPAN&gt;/GenerateToken&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;header:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;headers: 
   { 
     Authorization: 'Bearer {{openid token}}
}&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;Could you check what I missed? Thank you!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2019 09:24:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/ModelRefreshFailed-CredentialsNotSpecified-when-Refresh-DataSet/m-p/817074#M21080</guid>
      <dc:creator>XiaodongLiang</dc:creator>
      <dc:date>2019-10-14T09:24:34Z</dc:date>
    </item>
    <item>
      <title>Re: ModelRefreshFailed_CredentialsNotSpecified when Refresh DataSet</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/ModelRefreshFailed-CredentialsNotSpecified-when-Refresh-DataSet/m-p/817292#M21081</link>
      <description>&lt;P&gt;I figured out myself. It is because the Cosmos key was input with desktop PowerBI only. While Refresh API will take advantage of PowerBI on-line (&lt;A href="https://app.powerbi.com/),&amp;nbsp;" target="_blank"&gt;https://app.powerbi.com/),&amp;nbsp;&lt;/A&gt; which has not key input. After providing it, Refresh API started to run, though not sure it can succeed finally. Will see&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2019 13:27:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/ModelRefreshFailed-CredentialsNotSpecified-when-Refresh-DataSet/m-p/817292#M21081</guid>
      <dc:creator>XiaodongLiang</dc:creator>
      <dc:date>2019-10-14T13:27:01Z</dc:date>
    </item>
    <item>
      <title>Re: ModelRefreshFailed_CredentialsNotSpecified when Refresh DataSet</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/ModelRefreshFailed-CredentialsNotSpecified-when-Refresh-DataSet/m-p/1543955#M26741</link>
      <description>&lt;P&gt;For anybody else that runs into this issue, here is a visual guide on where to enter the credential information to eliminate this error.&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="EnterRefreshCredentials.jpg" style="width: 983px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/414279iE2B3B93A6AD94CE8/image-size/large?v=v2&amp;amp;px=999" role="button" title="EnterRefreshCredentials.jpg" alt="EnterRefreshCredentials.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Dec 2020 21:22:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/ModelRefreshFailed-CredentialsNotSpecified-when-Refresh-DataSet/m-p/1543955#M26741</guid>
      <dc:creator>travisjones</dc:creator>
      <dc:date>2020-12-10T21:22:42Z</dc:date>
    </item>
  </channel>
</rss>

