<?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 How to solve errors when scheduling a refresh using the Reporting API from Cornerstone on Demand in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/How-to-solve-errors-when-scheduling-a-refresh-using-the/m-p/3343689#M43545</link>
    <description>&lt;P&gt;I have managed to successfully set up a connection between Cornerstone on Demand and PowerBI as described here:&amp;nbsp;&lt;A href="https://community.fabric.microsoft.com/t5/Developer/Setting-up-an-Odata-connection-for-Cornerstone-API-Reporting/m-p/2196697#M32991" target="_blank" rel="noopener"&gt;https://community.fabric.microsoft.com/t5/Developer/Setting-up-an-Odata-connection-for-Cornerstone-API-Reporting/m-p/2196697#M32991&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and here:&amp;nbsp;&lt;A href="https://csod.my.site.com/supportcentral/s/article/How-do-we-integrate-Power-BI-with-the-Reporting-API?language=en_US" target="_blank" rel="noopener"&gt;https://csod.my.site.com/supportcentral/s/article/How-do-we-integrate-Power-BI-with-the-Reporting-API?language=en_US&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After publishing my report I wanted to schedule a daily refresh in PowerBI Services. However, I keep receiving the following errors:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="romee_0-1689952436484.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/945124iDFF9C35014183668/image-size/medium?v=v2&amp;amp;px=400" role="button" title="romee_0-1689952436484.png" alt="romee_0-1689952436484.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="romee_1-1689952444238.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/945125i072EB7F713AC57E0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="romee_1-1689952444238.png" alt="romee_1-1689952444238.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Following the documentation on how to connect I must choose anonymous as authentication method and none as the privacy level.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone tell me how I can succesfully schedule refreshes for my reports that are built using data from the Reporting API from Cornerstone on Demand?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
    <pubDate>Mon, 24 Jul 2023 09:13:24 GMT</pubDate>
    <dc:creator>romee</dc:creator>
    <dc:date>2023-07-24T09:13:24Z</dc:date>
    <item>
      <title>How to solve errors when scheduling a refresh using the Reporting API from Cornerstone on Demand</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-solve-errors-when-scheduling-a-refresh-using-the/m-p/3343689#M43545</link>
      <description>&lt;P&gt;I have managed to successfully set up a connection between Cornerstone on Demand and PowerBI as described here:&amp;nbsp;&lt;A href="https://community.fabric.microsoft.com/t5/Developer/Setting-up-an-Odata-connection-for-Cornerstone-API-Reporting/m-p/2196697#M32991" target="_blank" rel="noopener"&gt;https://community.fabric.microsoft.com/t5/Developer/Setting-up-an-Odata-connection-for-Cornerstone-API-Reporting/m-p/2196697#M32991&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and here:&amp;nbsp;&lt;A href="https://csod.my.site.com/supportcentral/s/article/How-do-we-integrate-Power-BI-with-the-Reporting-API?language=en_US" target="_blank" rel="noopener"&gt;https://csod.my.site.com/supportcentral/s/article/How-do-we-integrate-Power-BI-with-the-Reporting-API?language=en_US&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After publishing my report I wanted to schedule a daily refresh in PowerBI Services. However, I keep receiving the following errors:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="romee_0-1689952436484.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/945124iDFF9C35014183668/image-size/medium?v=v2&amp;amp;px=400" role="button" title="romee_0-1689952436484.png" alt="romee_0-1689952436484.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="romee_1-1689952444238.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/945125i072EB7F713AC57E0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="romee_1-1689952444238.png" alt="romee_1-1689952444238.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Following the documentation on how to connect I must choose anonymous as authentication method and none as the privacy level.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone tell me how I can succesfully schedule refreshes for my reports that are built using data from the Reporting API from Cornerstone on Demand?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jul 2023 09:13:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-solve-errors-when-scheduling-a-refresh-using-the/m-p/3343689#M43545</guid>
      <dc:creator>romee</dc:creator>
      <dc:date>2023-07-24T09:13:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to solve errors when scheduling a refresh using the Reporting API from Cornerstone on Demand</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-solve-errors-when-scheduling-a-refresh-using-the/m-p/3348106#M43586</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/592569"&gt;@romee&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;According to the error message,&amp;nbsp;&lt;SPAN&gt;one possible reason for the GET failure is that the bearer token may have expired or the REST endpoint did not return a JSON response&lt;/SPAN&gt;&lt;SPAN&gt;. Another possible reason is that the credentials provided for the Web source are invalid or the data source is rejecting the request&lt;/SPAN&gt;&lt;SPAN&gt;. You can refer the solution in the following links which have the similar problem as yours to solve it:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Use an Azure Functions Proxy:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blog.kloud.com.au/2018/07/23/use-anonymous-authentication-on-web-data-sources-with-a-api-key-in-url/" target="_blank"&gt;Power BI: Using anonymous authentication on Web data sources with a API key in URL – Kloud Blog&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Update the credentials:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://superuser.com/questions/1539483/getting-400-bad-request-using-power-bi-connector-with-aprimo-api#:~:text=Click%20%E2%80%98Edit%20Queries%E2%80%99%202.%20Home%20%3E%20Data%20Source,Report%20ID%20and%20Token%20%3E%20OK%20%3E%20Close" target="_blank"&gt;microsoft powerbi - Getting 400 Bad Request using Power BI Connector with Aprimo API - Super User&lt;/A&gt;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;I reached out to Aprimo support and was given the following support.&lt;/P&gt;
&lt;P&gt;From Power BI: 1. Click ‘Edit Queries’ 2. Home &amp;gt; Data Source Settings &amp;gt; Global Permissions 3. Select problematic connection &amp;gt; Edit Permissions &amp;gt; Edit &amp;gt; Basic &amp;gt; Input Report ID and Token &amp;gt; OK &amp;gt; Close&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/72412769/powerbi-datasource-error-web-contents-failed-to-get-contents-400-bad-request" target="_blank"&gt;excel - PowerBI DataSource.Error: Web.Contents failed to get contents (400): Bad request - Stack Overflow&lt;/A&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;let
    Source = Json.Document(Web.Contents("http://3.93.175.1/api/abfrage/", [Headers=[Authorization="Token 6bcc8706f68d3635f1514ce22611e83c12b1e4c1", #"Content-Type"="application/json"], Content=Json.FromValue([number_of_requests="1", search_term="Transalb"])]))
in
    Source&lt;/LI-CODE&gt;
&lt;P&gt;&lt;A href="https://www.dalesandro.net/accessing-rest-apis-with-basic-auth-and-api-key-in-power-query/" target="_blank"&gt;Accessing REST APIs with Basic Auth and API Key in Power Query | John Dalesandro&lt;/A&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Source = Json.Document(Web.Contents(PARAM_API_BASE_URL, [RelativePath = "/project/testprj", Headers = [Authorization = "Basic " &amp;amp; Binary.ToText(Text.ToBinary(PARAM_API_USERNAME &amp;amp; ":" &amp;amp; PARAM_API_USER_PASSWORD), BinaryEncoding.Base64), #"APIKey" = PARAM_API_KEY]]))&lt;/LI-CODE&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jul 2023 07:07:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-solve-errors-when-scheduling-a-refresh-using-the/m-p/3348106#M43586</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-07-25T07:07:17Z</dc:date>
    </item>
  </channel>
</rss>

