Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi all,
I’m stuck with an odd caching issue when pulling JSON from a REST API via Web.Contents.
Context
Symptoms
Minimal M (sanitized)
let
BaseUrl = "http://thestaff.co.in:8000",
Path = "api/v1/statistics/vgs/students",
Source = Web.Contents(
BaseUrl,
[
RelativePath = Path,
Query = [
page = "1",
page_size = "-1",
sort_order = "asc"
],
Headers = [
Accept = "application/json",
Authorization = "Bearer " & pToken // pToken is a text parameter (JWT only)
]
]
),
Json = Json.Document(Source)
in
Json
What I’ve already tried (no change):
Observations
Questions for experts
Goal
Make Power BI always pull fresh data from the API (matching Postman and the fresh PBIX), or at least reliably bypass any server or PBID cache when needed.
Happy to share additional sanitized logs or a tiny PBIX if helpful. Thanks!
Solved! Go to Solution.
Hi @rouzbehrasai ,
Thank you for reaching out to the Microsoft fabric community forum.
It looks like the old PBIX file is still holding some old cached data from the API. Even after clearing the normal cache, sometimes Power BI keeps a local cache for Web.Contents when the same URL and settings are used.
You can try adding a random query parameter in your API call with a random number, so that Power BI treats every refresh as a new request. After that, close Power BI and delete the files from folder .
Also, you can check by setting the privacy level to Ignore once for testing. If it still shows old data, you can use Fiddler or Query Diagnostics to see if Power BI is actually sending a new API request.
Since the new PBIX is showing the correct data, it confirms the API is fine. The issue is with cache stored in the old file. If the above steps don’t help, rebuilding the query in a new PBIX might be the best option.
Hope this helps. Let me know if the data updates properly after trying these steps.
Regards,
Community Support Team.
@rouzbehrasai Quick question, is it in PQ preview that you are seeing the cache data, or when you actually load the data in the model, it still shows the old data
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
Thank for reply.
Both.
In the old PBIX, I see the stale years already in Power Query preview (the parsed JSON root shows cached = TRUE). If I then load to the model, the table/visuals also include 2018/2019. And other updated data in the database is not shown correct in the report.
In a brand-new PBIX with the same M and token, preview and model are correct (no 2018/2019), and the cached flag is absent/false. The other updated data is also visible and updated in this report.
Hi @rouzbehrasai ,
Thank you for reaching out to the Microsoft fabric community forum.
It looks like the old PBIX file is still holding some old cached data from the API. Even after clearing the normal cache, sometimes Power BI keeps a local cache for Web.Contents when the same URL and settings are used.
You can try adding a random query parameter in your API call with a random number, so that Power BI treats every refresh as a new request. After that, close Power BI and delete the files from folder .
Also, you can check by setting the privacy level to Ignore once for testing. If it still shows old data, you can use Fiddler or Query Diagnostics to see if Power BI is actually sending a new API request.
Since the new PBIX is showing the correct data, it confirms the API is fine. The issue is with cache stored in the old file. If the above steps don’t help, rebuilding the query in a new PBIX might be the best option.
Hope this helps. Let me know if the data updates properly after trying these steps.
Regards,
Community Support Team.
Hi @rouzbehrasai,
I hope the information provided above assists you in resolving the issue. If you have any additional questions or concerns, please do not hesitate to contact us. We are here to support you and will be happy to help with any further assistance you may need.
Regards,
Community Support Team.
Hi @rouzbehrasai,
I hope the above details help you fix the issue. If you still have any questions or need more help, feel free to reach out. We are always here to support you.
Regards,
Community Support team.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 97 | |
| 76 | |
| 52 | |
| 51 | |
| 46 |