<?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: Invoke-RestMethod: The remote server returned an error: (404) Not Found. in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Invoke-RestMethod-The-remote-server-returned-an-error-404-Not/m-p/807179#M20950</link>
    <description>&lt;P&gt;They just started working today, for no reason.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cool.......&lt;/P&gt;</description>
    <pubDate>Tue, 01 Oct 2019 18:09:51 GMT</pubDate>
    <dc:creator>bboschert</dc:creator>
    <dc:date>2019-10-01T18:09:51Z</dc:date>
    <item>
      <title>Invoke-RestMethod: The remote server returned an error: (404) Not Found.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Invoke-RestMethod-The-remote-server-returned-an-error-404-Not/m-p/805963#M20932</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I'm working on getting this streaming dataset to work and I keep getting the error that the remote server is not found. I'm confused because I would think that there is a problem with my endpoint but I'm copying the link right out of power bi service. Also, This is only happening to streaming datasets that I have created today, all of the streaming datasets I've made prior work fine. Is anyone else experiencing the same thing or can spot something wrong with my script. I'm using powershell to post the data, here is the script.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;# Initialise Stream&lt;BR /&gt;$sleepDuration = 1 #PowerBI seldom updates realtime dashboards faster than once per second.&lt;BR /&gt;$eventsToSend = 500 #Change this to determine how many events are part of the stream&lt;/P&gt;&lt;P&gt;$endpoint = "&lt;A href="https://api.powerbi.com/beta/1bb841c5-79dd-4f6f-8ffa-1c73e03e5ab1/datasets/c443c22d-cab5-4ea2-a6f1-fe17d5effe7c/rows?key=tbbUfb3bY6qr%2FDlSCV7nQ9QqXqL%2FEnVED02s0VN9desLkm3ybUqIxUaxiqSAPQlsMzZGgI0hUVBvCVVZDbzLiQ%3D%3D" target="_blank" rel="noopener"&gt;https://api.powerbi.com/beta/1bb841c5-79dd-4f6f-8ffa-1c73e03e5ab1/datasets/c443c22d-cab5-4ea2-a6f1-fe17d5effe7c/rows?key=tbbUfb3bY6qr%2FDlSCV7nQ9QqXqL%2FEnVED02s0VN9desLkm3ybUqIxUaxiqSAPQlsMzZGgI0hUVBvCVVZDbzLiQ%3D%3D&lt;/A&gt;"&lt;BR /&gt;&lt;BR /&gt;# Initialise the Payload&lt;BR /&gt;$payload = @{&lt;BR /&gt;"ResourceName" ="AAAAA555555"&lt;BR /&gt;"CurrentStreamSpeed" =98.6&lt;BR /&gt;"AverageOutput" =98.6&lt;BR /&gt;"JobNumber" ="AAAAA555555"&lt;BR /&gt;"JobName" ="AAAAA555555"&lt;BR /&gt;"OpCode" ="AAAAA555555"&lt;BR /&gt;"TimeLastUpdated" ="2019-09-30T17:18:18.863Z"&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;# Iterate until $eventsToSend events have been sent&lt;BR /&gt;$index = 1&lt;BR /&gt;do&lt;BR /&gt;{&lt;BR /&gt;[xml]$SpeedInfo = Get-Content "\\Yharnam\Technique$\SFDCspeedXML\DCSpeed_130.xml"&lt;BR /&gt;$payload.ResourceName = $SpeedInfo.resourcespeed.resourcename&lt;BR /&gt;$payload.CurrentSpeedStream = $SpeedInfo.resourcespeed.currentspeedstream1&lt;BR /&gt;$payload.AverageOutput = $SpeedInfo.resourcespeed.averagespeeds.averageoutput&lt;BR /&gt;$payload.OpCode = $SpeedInfo.resourcespeed.currentoperation.name&lt;BR /&gt;$payload.TimeLastUpdated = (Get-Date).AddHours(-5)&lt;BR /&gt;$payload.JobName = $SpeedInfo.resourcespeed.runningjobs.job.name&lt;BR /&gt;[xml]$DetailInfo = Get-Content "\\Yharnam\Technique$\SFDCspeedXML\DCDetail_130.xml"&lt;BR /&gt;$payload.JobNumber = $DetailInfo.resourcedetail.tasks.task.jobnumber&lt;/P&gt;&lt;P&gt;# Send the event&lt;BR /&gt;Invoke-RestMethod -Method Post -Uri "$endpoint" -Body (ConvertTo-Json @($payload))&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;"`nEvent {0}" -f $index&lt;BR /&gt;$payload&lt;/P&gt;&lt;P&gt;# Sleep for a second&lt;BR /&gt;Start-Sleep $sleepDuration&lt;/P&gt;&lt;P&gt;# Ready for the next iteration&lt;BR /&gt;$index++&lt;/P&gt;&lt;P&gt;} While ($index -le $eventsToSend)&lt;/P&gt;&lt;P&gt;# Finished&lt;BR /&gt;"`n{0} Events Sent" -f $eventsToSend&lt;/P&gt;</description>
      <pubDate>Mon, 30 Sep 2019 17:54:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Invoke-RestMethod-The-remote-server-returned-an-error-404-Not/m-p/805963#M20932</guid>
      <dc:creator>bboschert</dc:creator>
      <dc:date>2019-09-30T17:54:40Z</dc:date>
    </item>
    <item>
      <title>Re: Invoke-RestMethod: The remote server returned an error: (404) Not Found.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Invoke-RestMethod-The-remote-server-returned-an-error-404-Not/m-p/806065#M20933</link>
      <description>&lt;P&gt;So, I've found that it only errors out when the historical data analysis is checked. Is there something different with the script that is supposed to be changed to accommodate for this? I didn't have this issue last week when I was using the historical data analysis.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Sep 2019 21:09:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Invoke-RestMethod-The-remote-server-returned-an-error-404-Not/m-p/806065#M20933</guid>
      <dc:creator>bboschert</dc:creator>
      <dc:date>2019-09-30T21:09:08Z</dc:date>
    </item>
    <item>
      <title>Re: Invoke-RestMethod: The remote server returned an error: (404) Not Found.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Invoke-RestMethod-The-remote-server-returned-an-error-404-Not/m-p/807179#M20950</link>
      <description>&lt;P&gt;They just started working today, for no reason.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cool.......&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2019 18:09:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Invoke-RestMethod-The-remote-server-returned-an-error-404-Not/m-p/807179#M20950</guid>
      <dc:creator>bboschert</dc:creator>
      <dc:date>2019-10-01T18:09:51Z</dc:date>
    </item>
  </channel>
</rss>

