<?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: Power BI Rest API Error in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Rest-API-Error/m-p/302662#M8923</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/46782"&gt;@cmtarayao&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have problem in posting data to REST API using the python3, part of the script below&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;REST_API_URL = "https://api.powerbi.com/beta/93fc8b07-5b2f-4a23-ae62-844e9ba4e216/datasets/83bc213e-1fa1-4264-ae43-39a88fdbdd93/rows?key=o4owv8NDQVFxVE6MUjf0oCXOrGomEHIgbClSRm3ao%2FfTnnDefPLpJMbK6owk%2FkPmMPymnEA8SrG0KfPSNMp5gg%3D%3D"
data ='[{{ "extraction_datetime": "2017-11-11 00:00:00", "location": "Bayombong", "rainfall": "0" }}]'
data=data.encode('utf-8')

req=urllib.reqeust.Request(REST_API_URL,data)
response=urllib.request.urlopen(req)&lt;/PRE&gt;
&lt;P&gt;At first it works fine and my dashboard working really well. After few days (started last November 10) I got a problem&amp;nbsp;&lt;STRONG&gt;HTTP Error 404: Not Found&amp;nbsp;&lt;/STRONG&gt;(when executing the main script).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please help.&lt;/P&gt;
&lt;P&gt;Thanks in advance.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/46782"&gt;@cmtarayao&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;The endpoints indicates that you're calling a POST API to send data to a streaming dataset. In this case, the non-existence of the target dataset usually causes the 404 error. Please go to Power BI Service to check if the streaming dataset exists or not.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 14 Nov 2017 08:23:46 GMT</pubDate>
    <dc:creator>Eric_Zhang</dc:creator>
    <dc:date>2017-11-14T08:23:46Z</dc:date>
    <item>
      <title>Power BI Rest API Error</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Rest-API-Error/m-p/301906#M8921</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have problem in posting data to REST API using the python3, part of the script below&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;REST_API_URL = "https://api.powerbi.com/beta/93fc8b07-5b2f-4a23-ae62-844e9ba4e216/datasets/83bc213e-1fa1-4264-ae43-39a88fdbdd93/rows?key=o4owv8NDQVFxVE6MUjf0oCXOrGomEHIgbClSRm3ao%2FfTnnDefPLpJMbK6owk%2FkPmMPymnEA8SrG0KfPSNMp5gg%3D%3D"
data ='[{{ "extraction_datetime": "2017-11-11 00:00:00", "location": "Bayombong", "rainfall": "0" }}]'
data=data.encode('utf-8')

req=urllib.reqeust.Request(REST_API_URL,data)
response=urllib.request.urlopen(req)&lt;/PRE&gt;&lt;P&gt;At first it works fine and my dashboard working really well. After few days (started last November 10) I got a problem&amp;nbsp;&lt;STRONG&gt;HTTP Error 404: Not Found&amp;nbsp;&lt;/STRONG&gt;(when executing the main script).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Nov 2017 09:59:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Rest-API-Error/m-p/301906#M8921</guid>
      <dc:creator>cmtarayao</dc:creator>
      <dc:date>2017-11-13T09:59:28Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Rest API Error</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Rest-API-Error/m-p/302662#M8923</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/46782"&gt;@cmtarayao&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have problem in posting data to REST API using the python3, part of the script below&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;REST_API_URL = "https://api.powerbi.com/beta/93fc8b07-5b2f-4a23-ae62-844e9ba4e216/datasets/83bc213e-1fa1-4264-ae43-39a88fdbdd93/rows?key=o4owv8NDQVFxVE6MUjf0oCXOrGomEHIgbClSRm3ao%2FfTnnDefPLpJMbK6owk%2FkPmMPymnEA8SrG0KfPSNMp5gg%3D%3D"
data ='[{{ "extraction_datetime": "2017-11-11 00:00:00", "location": "Bayombong", "rainfall": "0" }}]'
data=data.encode('utf-8')

req=urllib.reqeust.Request(REST_API_URL,data)
response=urllib.request.urlopen(req)&lt;/PRE&gt;
&lt;P&gt;At first it works fine and my dashboard working really well. After few days (started last November 10) I got a problem&amp;nbsp;&lt;STRONG&gt;HTTP Error 404: Not Found&amp;nbsp;&lt;/STRONG&gt;(when executing the main script).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please help.&lt;/P&gt;
&lt;P&gt;Thanks in advance.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/46782"&gt;@cmtarayao&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;The endpoints indicates that you're calling a POST API to send data to a streaming dataset. In this case, the non-existence of the target dataset usually causes the 404 error. Please go to Power BI Service to check if the streaming dataset exists or not.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Nov 2017 08:23:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Rest-API-Error/m-p/302662#M8923</guid>
      <dc:creator>Eric_Zhang</dc:creator>
      <dc:date>2017-11-14T08:23:46Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Rest API Error</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Rest-API-Error/m-p/302714#M8925</link>
      <description>&lt;P&gt;Hi Eric,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the quick reply. Checking the Power BI Service, I found out that the error occur when the&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;historic data analysis&lt;/EM&gt;&lt;/STRONG&gt; is turned ON. I tried two cases, &lt;STRONG&gt;sample&lt;/STRONG&gt; not saving history while &lt;STRONG&gt;sample2&lt;/STRONG&gt; does save.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Capture.JPG" style="width: 600px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/69376i925BB81126FA1347/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;With historic data analysis&amp;nbsp; OFF,&amp;nbsp;calling POST API is successful. On the otherhand, if turned ON, that's the time the problem occur. Does any other solution when I want historic data to be saved while having streaming dataset/dashboard?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Nov 2017 09:17:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Rest-API-Error/m-p/302714#M8925</guid>
      <dc:creator>cmtarayao</dc:creator>
      <dc:date>2017-11-14T09:17:31Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Rest API Error</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Rest-API-Error/m-p/317276#M9386</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/46782"&gt;@cmtarayao&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hi Eric,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the quick reply. Checking the Power BI Service, I found out that the error occur when the&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;historic data analysis&lt;/EM&gt;&lt;/STRONG&gt; is turned ON. I tried two cases, &lt;STRONG&gt;sample&lt;/STRONG&gt; not saving history while &lt;STRONG&gt;sample2&lt;/STRONG&gt; does save.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Capture.JPG" style="width: 600px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/69376i925BB81126FA1347/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;With historic data analysis&amp;nbsp; OFF,&amp;nbsp;calling POST API is successful. On the otherhand, if turned ON, that's the time the problem occur. Does any other solution when I want historic data to be saved while having streaming dataset/dashboard?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/46782"&gt;@cmtarayao&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;That is weird. I don't reproduce this issue. Could you try to re-copy the endpoints from those two datasets and test? What's going on if you copy the powershell scription and execute in teh PowerShell ISE?&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2017 07:51:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Rest-API-Error/m-p/317276#M9386</guid>
      <dc:creator>Eric_Zhang</dc:creator>
      <dc:date>2017-12-05T07:51:33Z</dc:date>
    </item>
  </channel>
</rss>

