Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
I'm testing the waters with some REST calls for Power BI. I'm using the PowerShell cmdlets. I can successfully make calls to some api endpoints for example listing the refresh history of a dataset
Datasets - Get Refresh History In Group - REST API (Power BI Power BI REST APIs) | Microsoft Docs
But others return an error even though I am following the documentation. For example,
Datasets - Cancel Refresh In Group - REST API (Power BI Power BI REST APIs) | Microsoft Docs
Invoke-PowerBIRestMethod -Method Delete -Url 'groups/xxxxx-xxxx-xxxx-xxxx-xxxxxc54c/datasets/xxxxxx-xxx-xxxx-xxxx-xxxxxx2bb0f/refreshes/xxxxxx-xxxx-xxxx-xxxx-xxxxx5b444'
Message : Response status code does not indicate success: 405 (Method Not Allowed).
StackTrace : at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
at Microsoft.PowerBI.Commands.Profile.InvokePowerBIRestMethod.<InvokeRestMethod>d__35.MoveNext()
Exception : System.Net.Http.HttpRequestException
InvocationInfo : {Invoke-PowerBIRestMethod}
Line : Invoke-PowerBIRestMethod -Method Delete -Url .....
Position : At line:1 char:1
+ Invoke-PowerBIRestMethod -Method Delete -Url 'groups/9bbe36b5-cb03-4e ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I had similar error trying to invoke
Solved! Go to Solution.
Hi @mattcarter865 ,
Both of the following REST APIs are only for datasets that perform asynchronous refresh operation operations:
There are the following limitations for asynchronous refresh with the Power BI REST API, that is probably the reason for getting 405 error...
HTTP Error “405 Method Not Allowed”: How to solve the problem
Best Regards
Hi @mattcarter865 ,
Both of the following REST APIs are only for datasets that perform asynchronous refresh operation operations:
There are the following limitations for asynchronous refresh with the Power BI REST API, that is probably the reason for getting 405 error...
HTTP Error “405 Method Not Allowed”: How to solve the problem
Best Regards
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
4 | |
2 | |
1 | |
1 | |
1 |
User | Count |
---|---|
10 | |
4 | |
3 | |
2 | |
2 |