<?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 Refresh Dataset gives 404 error in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Rest-API-Refresh-Dataset-gives-404-error/m-p/2993093#M40506</link>
    <description>&lt;P&gt;Hey, In case if the access is lost the error messgae would be unauthorized access (401) and not 404.&lt;/P&gt;&lt;P&gt;404 is usually whenever the object you are trying to access doesnt exists.&lt;/P&gt;</description>
    <pubDate>Thu, 29 Dec 2022 10:25:09 GMT</pubDate>
    <dc:creator>NandanHegde</dc:creator>
    <dc:date>2022-12-29T10:25:09Z</dc:date>
    <item>
      <title>Power BI Rest API Refresh Dataset gives 404 error</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Rest-API-Refresh-Dataset-gives-404-error/m-p/2992605#M40495</link>
      <description>&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;I have created a PowerShell file to refresh the automation of a Power BI dataset. This below snippet worked for a few days and suddenly gave the below error.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;VERBOSE: POST https://api.powerbi.com/v1.0/myorg/groups/5fa2e3dc-f8a1-44f1-8f8a-836a531bb0fd/datasets/c9d43a1c-ab7b-4db0-ad72-ce63f9057c69/refreshes with 0-byte payload
Invoke-RestMethod : The remote server returned an error: (404) Not Found.
At line:27 char:15
+ ... esultJson = Invoke-RestMethod -Uri $pbiURLapps -Method Post -Headers  ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebException
    + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand
 

Exception        : System.Net.WebException: The remote server returned an error: (404) Not Found.
                      at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.GetResponse(WebRequest request)
                      at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.ProcessRecord()
InnerException   : False
Message          : The remote server returned an error: (404) Not Found.
StackTrace       :    at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.GetResponse(WebRequest request)
                      at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.ProcessRecord()
HelpLink         :
Source           : Microsoft.PowerShell.Commands.Utility
ErrorDetails     :
ErrorCategory    : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebException
InvocationInfo   : System.Management.Automation.InvocationInfo
ScriptStackTrace : at &amp;lt;ScriptBlock&amp;gt;, &amp;lt;No file&amp;gt;: line 27&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code that I have used as stated below.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;$credential = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList $applicationId, $securePassword

##Connecting PowerBI
Connect-PowerBIServiceAccount -ServicePrincipal -Credential $credential -Tenant $TenantID

$datasetID = "&amp;lt;DSid&amp;gt;"
$groupID =  "&amp;lt;gpid&amp;gt;"

$pbiURLapps = "https://api.powerbi.com/v1.0/myorg/groups/$groupID/datasets/$datasetID/refreshes"

$header = Get-PowerBIAccessToken

$resultJson = Invoke-RestMethod -Uri $pbiURLapps -Method Post -Headers $header  -Verbose&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can confirm that dataset ID and group ID is correct. and i have used service principle to do the refresh. Thank you in advance.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2022 04:44:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Rest-API-Refresh-Dataset-gives-404-error/m-p/2992605#M40495</guid>
      <dc:creator>AmilaGunawardan</dc:creator>
      <dc:date>2022-12-29T04:44:34Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Rest API Refresh Dataset gives 404 error</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Rest-API-Refresh-Dataset-gives-404-error/m-p/2992616#M40496</link>
      <description>&lt;P&gt;Can you confirm the below 2 aspects:&lt;/P&gt;&lt;P&gt;1) The Service principal is still active in AAD and Access token is getting generated via the SP.&lt;/P&gt;&lt;P&gt;2) The workspace ID and datasetid are still the same? Because in case if you delete the dataset and republish it with same name in same workspace, the datasetid is newly created&lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2022 05:08:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Rest-API-Refresh-Dataset-gives-404-error/m-p/2992616#M40496</guid>
      <dc:creator>NandanHegde</dc:creator>
      <dc:date>2022-12-29T05:08:29Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Rest API Refresh Dataset gives 404 error</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Rest-API-Refresh-Dataset-gives-404-error/m-p/2992620#M40497</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;I can confirm that Service Principle is active, and access token is generated.&lt;/LI&gt;&lt;LI&gt;I have replaced the dataset, but haven't deleted the data set. Because of that, dataset ID was not changed. I have manually checked for any changes of dataset ID.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;I will include the&amp;nbsp;&lt;SPAN&gt;Resolve-PowerBIError output below for easier debugging&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Exception        : System.Net.WebException: The remote server returned an error: (404) Not Found.
                      at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.GetResponse(WebRequest request)
                      at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.ProcessRecord()
InnerException   : False
Message          : The remote server returned an error: (404) Not Found.
StackTrace       :    at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.GetResponse(WebRequest request)
                      at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.ProcessRecord()
HelpLink         :
Source           : Microsoft.PowerShell.Commands.Utility
ErrorDetails     :
ErrorCategory    : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebException
InvocationInfo   : System.Management.Automation.InvocationInfo
ScriptStackTrace : at &amp;lt;ScriptBlock&amp;gt;, &amp;lt;No file&amp;gt;: line 29


Exception        : System.Net.WebException: The remote server returned an error: (404) Not Found.
                      at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.GetResponse(WebRequest request)
                      at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.ProcessRecord()
InnerException   : False
Message          : The remote server returned an error: (404) Not Found.
StackTrace       :    at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.GetResponse(WebRequest request)
                      at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.ProcessRecord()
HelpLink         :
Source           : Microsoft.PowerShell.Commands.Utility
ErrorDetails     :
ErrorCategory    : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebException
InvocationInfo   : System.Management.Automation.InvocationInfo
ScriptStackTrace : at &amp;lt;ScriptBlock&amp;gt;, &amp;lt;No file&amp;gt;: line 27


Exception        : System.Net.WebException: The remote server returned an error: (403) Forbidden.
                      at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.GetResponse(WebRequest request)
                      at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.ProcessRecord()
InnerException   : False
Message          : The remote server returned an error: (403) Forbidden.
StackTrace       :    at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.GetResponse(WebRequest request)
                      at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.ProcessRecord()
HelpLink         :
Source           : Microsoft.PowerShell.Commands.Utility
ErrorDetails     :
ErrorCategory    : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebException
InvocationInfo   : System.Management.Automation.InvocationInfo
ScriptStackTrace : at &amp;lt;ScriptBlock&amp;gt;, &amp;lt;No file&amp;gt;: line 27


Exception        : System.Net.WebException: The remote server returned an error: (404) Not Found.
                      at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.GetResponse(WebRequest request)
                      at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.ProcessRecord()
InnerException   : False
Message          : The remote server returned an error: (404) Not Found.
StackTrace       :    at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.GetResponse(WebRequest request)
                      at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.ProcessRecord()
HelpLink         :
Source           : Microsoft.PowerShell.Commands.Utility
ErrorDetails     :
ErrorCategory    : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebException
InvocationInfo   : System.Management.Automation.InvocationInfo
ScriptStackTrace : at &amp;lt;ScriptBlock&amp;gt;, &amp;lt;No file&amp;gt;: line 27


Exception        : System.Net.WebException: The remote server returned an error: (403) Forbidden.
                      at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.GetResponse(WebRequest request)
                      at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.ProcessRecord()
InnerException   : False
Message          : The remote server returned an error: (403) Forbidden.
StackTrace       :    at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.GetResponse(WebRequest request)
                      at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.ProcessRecord()
HelpLink         :
Source           : Microsoft.PowerShell.Commands.Utility
ErrorDetails     : {"Message":"API is not accessible for application"}
ErrorCategory    : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebException
InvocationInfo   : System.Management.Automation.InvocationInfo
ScriptStackTrace : at &amp;lt;ScriptBlock&amp;gt;, &amp;lt;No file&amp;gt;: line 27


Exception        : System.Net.WebException: The remote server returned an error: (404) Not Found.
                      at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.GetResponse(WebRequest request)
                      at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.ProcessRecord()
InnerException   : False
Message          : The remote server returned an error: (404) Not Found.
StackTrace       :    at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.GetResponse(WebRequest request)
                      at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.ProcessRecord()
HelpLink         :
Source           : Microsoft.PowerShell.Commands.Utility
ErrorDetails     :
ErrorCategory    : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebException
InvocationInfo   : System.Management.Automation.InvocationInfo
ScriptStackTrace : at &amp;lt;ScriptBlock&amp;gt;, &amp;lt;No file&amp;gt;: line 27


Exception        : System.Net.WebException: The remote server returned an error: (404) Not Found.
                      at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.GetResponse(WebRequest request)
                      at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.ProcessRecord()
InnerException   : False
Message          : The remote server returned an error: (404) Not Found.
StackTrace       :    at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.GetResponse(WebRequest request)
                      at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.ProcessRecord()
HelpLink         :
Source           : Microsoft.PowerShell.Commands.Utility
ErrorDetails     :
ErrorCategory    : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebException
InvocationInfo   : System.Management.Automation.InvocationInfo
ScriptStackTrace : at &amp;lt;ScriptBlock&amp;gt;, &amp;lt;No file&amp;gt;: line 27


Exception        : System.Net.WebException: The remote server returned an error: (404) Not Found.
                      at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.GetResponse(WebRequest request)
                      at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.ProcessRecord()
InnerException   : False
Message          : The remote server returned an error: (404) Not Found.
StackTrace       :    at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.GetResponse(WebRequest request)
                      at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.ProcessRecord()
HelpLink         :
Source           : Microsoft.PowerShell.Commands.Utility
ErrorDetails     :
ErrorCategory    : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebException
InvocationInfo   : System.Management.Automation.InvocationInfo
ScriptStackTrace : at &amp;lt;ScriptBlock&amp;gt;, &amp;lt;No file&amp;gt;: line 27


Exception        : System.Net.WebException: The remote server returned an error: (404) Not Found.
                      at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.GetResponse(WebRequest request)
                      at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.ProcessRecord()
InnerException   : False
Message          : The remote server returned an error: (404) Not Found.
StackTrace       :    at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.GetResponse(WebRequest request)
                      at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.ProcessRecord()
HelpLink         :
Source           : Microsoft.PowerShell.Commands.Utility
ErrorDetails     :
ErrorCategory    : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebException
InvocationInfo   : System.Management.Automation.InvocationInfo
ScriptStackTrace : at &amp;lt;ScriptBlock&amp;gt;, &amp;lt;No file&amp;gt;: line 27


Exception        : System.Net.WebException: The remote server returned an error: (404) Not Found.
                      at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.GetResponse(WebRequest request)
                      at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.ProcessRecord()
InnerException   : False
Message          : The remote server returned an error: (404) Not Found.
StackTrace       :    at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.GetResponse(WebRequest request)
                      at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.ProcessRecord()
HelpLink         :
Source           : Microsoft.PowerShell.Commands.Utility
ErrorDetails     :
ErrorCategory    : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebException
InvocationInfo   : System.Management.Automation.InvocationInfo
ScriptStackTrace : at &amp;lt;ScriptBlock&amp;gt;, &amp;lt;No file&amp;gt;: line 27


Exception        : System.Net.WebException: The remote server returned an error: (400) Bad Request.
                      at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.GetResponse(WebRequest request)
                      at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.ProcessRecord()
InnerException   : False
Message          : The remote server returned an error: (400) Bad Request.
StackTrace       :    at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.GetResponse(WebRequest request)
                      at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.ProcessRecord()
HelpLink         :
Source           : Microsoft.PowerShell.Commands.Utility
ErrorDetails     :
ErrorCategory    : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebException
InvocationInfo   : System.Management.Automation.InvocationInfo
ScriptStackTrace : at &amp;lt;ScriptBlock&amp;gt;, &amp;lt;No file&amp;gt;: line 30


Exception        : System.Net.WebException: The remote server returned an error: (400) Bad Request.
                      at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.GetResponse(WebRequest request)
                      at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.ProcessRecord()
InnerException   : False
Message          : The remote server returned an error: (400) Bad Request.
StackTrace       :    at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.GetResponse(WebRequest request)
                      at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.ProcessRecord()
HelpLink         :
Source           : Microsoft.PowerShell.Commands.Utility
ErrorDetails     :
ErrorCategory    : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebException
InvocationInfo   : System.Management.Automation.InvocationInfo
ScriptStackTrace : at &amp;lt;ScriptBlock&amp;gt;, &amp;lt;No file&amp;gt;: line 30


Exception        : System.Net.WebException: The remote server returned an error: (404) Not Found.
                      at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.GetResponse(WebRequest request)
                      at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.ProcessRecord()
InnerException   : False
Message          : The remote server returned an error: (404) Not Found.
StackTrace       :    at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.GetResponse(WebRequest request)
                      at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.ProcessRecord()
HelpLink         :
Source           : Microsoft.PowerShell.Commands.Utility
ErrorDetails     :
ErrorCategory    : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebException
InvocationInfo   : System.Management.Automation.InvocationInfo
ScriptStackTrace : at &amp;lt;ScriptBlock&amp;gt;, &amp;lt;No file&amp;gt;: line 30


Exception        : System.Net.WebException: The remote server returned an error: (404) Not Found.
                      at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.GetResponse(WebRequest request)
                      at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.ProcessRecord()
InnerException   : False
Message          : The remote server returned an error: (404) Not Found.
StackTrace       :    at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.GetResponse(WebRequest request)
                      at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.ProcessRecord()
HelpLink         :
Source           : Microsoft.PowerShell.Commands.Utility
ErrorDetails     :
ErrorCategory    : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebException
InvocationInfo   : System.Management.Automation.InvocationInfo
ScriptStackTrace : at &amp;lt;ScriptBlock&amp;gt;, &amp;lt;No file&amp;gt;: line 30


Exception        : System.Net.WebException: The remote server returned an error: (403) Forbidden.
                      at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.GetResponse(WebRequest request)
                      at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.ProcessRecord()
InnerException   : False
Message          : The remote server returned an error: (403) Forbidden.
StackTrace       :    at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.GetResponse(WebRequest request)
                      at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.ProcessRecord()
HelpLink         :
Source           : Microsoft.PowerShell.Commands.Utility
ErrorDetails     : {"Message":"API is not accessible for application"}
ErrorCategory    : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebException
InvocationInfo   : System.Management.Automation.InvocationInfo
ScriptStackTrace : at &amp;lt;ScriptBlock&amp;gt;, &amp;lt;No file&amp;gt;: line 30


Exception        : System.Net.WebException: The remote server returned an error: (404) Not Found.
                      at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.GetResponse(WebRequest request)
                      at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.ProcessRecord()
InnerException   : False
Message          : The remote server returned an error: (404) Not Found.
StackTrace       :    at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.GetResponse(WebRequest request)
                      at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.ProcessRecord()
HelpLink         :
Source           : Microsoft.PowerShell.Commands.Utility
ErrorDetails     :
ErrorCategory    : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebException
InvocationInfo   : System.Management.Automation.InvocationInfo
ScriptStackTrace : at &amp;lt;ScriptBlock&amp;gt;, &amp;lt;No file&amp;gt;: line 30


Exception        : System.Net.WebException: The remote server returned an error: (404) Not Found.
                      at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.GetResponse(WebRequest request)
                      at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.ProcessRecord()
InnerException   : False
Message          : The remote server returned an error: (404) Not Found.
StackTrace       :    at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.GetResponse(WebRequest request)
                      at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.ProcessRecord()
HelpLink         :
Source           : Microsoft.PowerShell.Commands.Utility
ErrorDetails     :
ErrorCategory    : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebException
InvocationInfo   : System.Management.Automation.InvocationInfo
ScriptStackTrace : at &amp;lt;ScriptBlock&amp;gt;, &amp;lt;No file&amp;gt;: line 29


Exception        : System.Net.WebException: The remote server returned an error: (403) Forbidden.
                      at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.GetResponse(WebRequest request)
                      at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.ProcessRecord()
InnerException   : False
Message          : The remote server returned an error: (403) Forbidden.
StackTrace       :    at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.GetResponse(WebRequest request)
                      at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.ProcessRecord()
HelpLink         :
Source           : Microsoft.PowerShell.Commands.Utility
ErrorDetails     : {"Message":"API is not accessible for application"}
ErrorCategory    : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebException
InvocationInfo   : System.Management.Automation.InvocationInfo
ScriptStackTrace : at &amp;lt;ScriptBlock&amp;gt;, &amp;lt;No file&amp;gt;: line 29


Exception        : System.Net.WebException: The remote server returned an error: (404) Not Found.
                      at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.GetResponse(WebRequest request)
                      at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.ProcessRecord()
InnerException   : False
Message          : The remote server returned an error: (404) Not Found.
StackTrace       :    at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.GetResponse(WebRequest request)
                      at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.ProcessRecord()
HelpLink         :
Source           : Microsoft.PowerShell.Commands.Utility
ErrorDetails     :
ErrorCategory    : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebException
InvocationInfo   : System.Management.Automation.InvocationInfo
ScriptStackTrace : at &amp;lt;ScriptBlock&amp;gt;, &amp;lt;No file&amp;gt;: line 27


Exception        : System.Net.WebException: The remote server returned an error: (404) Not Found.
                      at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.GetResponse(WebRequest request)
                      at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.ProcessRecord()
InnerException   : False
Message          : The remote server returned an error: (404) Not Found.
StackTrace       :    at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.GetResponse(WebRequest request)
                      at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.ProcessRecord()
HelpLink         :
Source           : Microsoft.PowerShell.Commands.Utility
ErrorDetails     :
ErrorCategory    : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebException
InvocationInfo   : System.Management.Automation.InvocationInfo
ScriptStackTrace : at &amp;lt;ScriptBlock&amp;gt;, &amp;lt;No file&amp;gt;: line 27&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2022 05:17:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Rest-API-Refresh-Dataset-gives-404-error/m-p/2992620#M40497</guid>
      <dc:creator>AmilaGunawardan</dc:creator>
      <dc:date>2022-12-29T05:17:12Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Rest API Refresh Dataset gives 404 error</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Rest-API-Refresh-Dataset-gives-404-error/m-p/2992845#M40502</link>
      <description>&lt;P&gt;Seems that your service principal lost access to the dataset&lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2022 07:47:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Rest-API-Refresh-Dataset-gives-404-error/m-p/2992845#M40502</guid>
      <dc:creator>AmosHersch</dc:creator>
      <dc:date>2022-12-29T07:47:01Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Rest API Refresh Dataset gives 404 error</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Rest-API-Refresh-Dataset-gives-404-error/m-p/2993093#M40506</link>
      <description>&lt;P&gt;Hey, In case if the access is lost the error messgae would be unauthorized access (401) and not 404.&lt;/P&gt;&lt;P&gt;404 is usually whenever the object you are trying to access doesnt exists.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2022 10:25:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Rest-API-Refresh-Dataset-gives-404-error/m-p/2993093#M40506</guid>
      <dc:creator>NandanHegde</dc:creator>
      <dc:date>2022-12-29T10:25:09Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Rest API Refresh Dataset gives 404 error</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Rest-API-Refresh-Dataset-gives-404-error/m-p/2993174#M40509</link>
      <description>&lt;P&gt;that's not always true. Power BI tries to find the dataset with the credentials of the calling user. If it's not found with those credentials then you might get 404 (not found) error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2022 11:12:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Rest-API-Refresh-Dataset-gives-404-error/m-p/2993174#M40509</guid>
      <dc:creator>AmosHersch</dc:creator>
      <dc:date>2022-12-29T11:12:27Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Rest API Refresh Dataset gives 404 error</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Rest-API-Refresh-Dataset-gives-404-error/m-p/2998295#M40543</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Access policies remain the same. Is this related to any limitation in the trigger, I'm triggering this once in 30 mins and i have premium capacity.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2023 10:16:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Rest-API-Refresh-Dataset-gives-404-error/m-p/2998295#M40543</guid>
      <dc:creator>AmilaGunawardan</dc:creator>
      <dc:date>2023-01-03T10:16:57Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Rest API Refresh Dataset gives 404 error</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Rest-API-Refresh-Dataset-gives-404-error/m-p/3000830#M40570</link>
      <description>&lt;P&gt;This was fixed by adding the relevant AD group to the workspace as a member.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2023 11:28:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Rest-API-Refresh-Dataset-gives-404-error/m-p/3000830#M40570</guid>
      <dc:creator>AmilaGunawardan</dc:creator>
      <dc:date>2023-01-04T11:28:50Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Rest API Refresh Dataset gives 404 error</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Rest-API-Refresh-Dataset-gives-404-error/m-p/3071560#M41142</link>
      <description>&lt;P&gt;This error happened because the service principle access got revoked without a warning.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2023 10:18:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Rest-API-Refresh-Dataset-gives-404-error/m-p/3071560#M41142</guid>
      <dc:creator>AmilaGunawardan</dc:creator>
      <dc:date>2023-02-09T10:18:07Z</dc:date>
    </item>
  </channel>
</rss>

