Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
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!
@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.
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.