Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
making a simple request to extract the update history of a dataset.
However, I only receive this error for some datasets, for others the request works.
I am making the request using the requests library to make the request.
The complete code is in this github repository
https://github.com/Lodbrockcraft/PowerBi-API/blob/main/Dataset/dataset_refresh.py
It doesn't seem to be a dataset permission issue, as I can pull the workspace and all datasets from the workspace via api, using the url https://api.powerbi.com/v1.0/myorg/groups/{workspaceId}/ datasets/{datesetId}/
I've already tested using other APIs that interact with the dataset and I haven't had any problems. I'm only having a problem when I pull the update history of some datasets.
@Lodbrockcraft Can you confirm if the API can read historical records? Please check the date range btw the dataset you could call.
You can also explore alternative ways to check if you can read the historical records using different Power BI APIs or tools. If none of the above suggestions resolve the issue, contact Power BI support directly, as they have access to server logs and detailed system information that might help diagnose the specific cause of the 404 error.
Here is another helpful resource
https://learn.microsoft.com/en-us/rest/api/power-bi/datasets/execute-queries
If this post is helpful, please mark it as the solution to help others find it easily. Also, if my answers contribute to a solution, show your appreciation by giving it a thumbs up!
Hi @DallasBaba, thanks for message.
I don't think it's a problem that the data set doesn't exist, since I can pull information from it via the API, including refreshes or canceling refreshes in API.
The problem is when I pull the refreshes history.
I also think it's not a mistake with the API endpoint, since the same code works for other datasets.
@Lodbrockcraft The error message indicates that the server could not find the requested resource.
This could be due to several reasons, such as an incorrect URL, missing or inaccurate headers, or the resource not existing. It’s possible that the datasets causing the issue have been moved or deleted, or there is an issue with the API endpoint you’re using to access them. You might want to contact the database admin for questions.
You can read more at Microsoft Learn
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
8 | |
7 | |
3 | |
2 | |
2 |
User | Count |
---|---|
6 | |
5 | |
4 | |
4 | |
4 |