Forum Discussion
Python Rest API Python 404 ExecuteQueries
- 1 year ago
That sounds odd. One quick question, your original post suggests that you ran requests.get function.
Should not it be requests.post method?Considering this the api documentation itself says its a post call
https://learn.microsoft.com/en-us/rest/api/power-bi/datasets/execute-queries
Need a Power BI Consultation? Hire me on Upwork
Connect on LinkedIn
Did I answer your question? Mark my post as a solution! If I helped you, click on the Thumbs Up to give Kudos.
Proud to be a Super User!
Error message indicates, Resource not found
1. Have you added services principal to the worksapce as a Contributor or greater role?
2. Have you passed the workspace id (group id) and dataset ID process in the API endpoint ?
3. Please test the dax query that you would like to run in DAX query view or DAX studio
I am assuming you enabled, necessary admin settings at the tenant level required to executive Power BI APIs with service principal and you also enabled Executive DAX queries option.
The URL that you shared seems to be the API endpoint temaplate, while running the API you need to replace the dataset id with your semantic model ID and group id with your workspace ID, I am assuming you have done that
Need a Power BI Consultation? Hire me on Upwork
Connect on LinkedIn
|