Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Lodbrockcraft
Regular Visitor

HTTPError: 404 Client Error: Not Found for url in get refreshes dataset

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.

3 REPLIES 3
DallasBaba
Skilled Sharer
Skilled Sharer

@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

 

Thanks
Dallas
Lodbrockcraft
Regular Visitor

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.

DallasBaba
Skilled Sharer
Skilled Sharer

@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

 

 Let me know if this works for you. @ me in replies, or I'll lose your thread!!!  
Note:
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
Thanks
Dallas

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.