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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Kayaa21
New Member

Couldnt refresh data visual but data refreshed on OneDrive.

Hi all,

 

Relatively new to PowerBi and PowerApps, not sure what happened but when I enter a input via powerApps, it updates into my excel file on OneDrive. However, when I click refresh now on my powerBi desktop, my matrix visualization stays the same. 

Kayaa21_0-1759133565178.png 

Kayaa21_1-1759133630493.png

 

This is the error that I am encounting, but things were not like this last few day everything was working fine. (Left photo is from OneDrive Excel, right is my matrix table in PowerBI)

Kayaa21_2-1759133660946.pngKayaa21_3-1759133683779.png

 

Any help would be appreciated, still trying to learn more about PowerBI!

 

 

1 ACCEPTED SOLUTION
rohit1991
Super User
Super User

Hi @Kayaa21 

This behavior is common when connecting Excel (OneDrive) to Power BI, and usually happens because of how the file path and credentials are set up. Here’s a complete checklist to fix it:

 

1. Check how your Excel is connected

  • If your file path in Power BI Desktop looks like this:
    C:\Users\<name>\OneDrive\Feedback.xlsx >> this is a local sync folder. Power BI Service cannot refresh it.
  • It must use the cloud URL (SharePoint/OneDrive link) like this:
    https://<tenant>.sharepoint.com/.../Feedback.xlsx  >> this works in both Desktop & Service.

Fix: Go to Get Data >>Web >> Paste OneDrive/SharePoint file link (copy the file’s URL from OneDrive in the browser). Reconnect using that.

 

2. Update credentials in Power BI Service

  1. Publish your report again after fixing the connection.
  2. In Power BI Service >> Workspace >> Dataset >> Settings >> Data source credentials.
  3. Re-enter your Microsoft 365 (OneDrive/SharePoint) login and make sure it shows valid.
  4. Now try “Refresh now”  it should pull the latest file.

3. If refresh still fails

  • Error: Gateway required >> You are still on a local path. Reconnect with the cloud URL.
  • Error: Access denied >> Make sure the account used in Power BI Service has access to that Excel file on OneDrive.
  • Error: Stale data in Desktop >> Clear Desktop cache (File >> Options >> Data Load >> Clear cache) and refresh again.

4. File locking issues (PowerApps + Excel)

If PowerApps is constantly writing into the Excel, sometimes the file gets locked and Power BI only sees the previous snapshot.

  • Long-term fix: Store PowerApps data in Dataverse or a SharePoint List instead of Excel. Power BI refresh against these sources is more reliable.

5. Best practice

  • Always connect via OneDrive/SharePoint online link, not local folder.
  • Use scheduled refresh in the Service (every 30 mins / 1 hour).
  • If you want real-time updates from PowerApps, consider SharePoint List or Dataverse.

Once you reconnect the file using the online URL and update credentials in the Service, your visuals will refresh correctly.


Did it work? ✔ Give a Kudo • Mark as Solution – help others too!

View solution in original post

7 REPLIES 7
v-sgandrathi
Community Support
Community Support

Hi @Kayaa21,

 

I wanted to check if you had the opportunity to review the information provided by @rohit1991. Please feel free to contact us if you have any further questions. 
 

Thank you and continue using Microsoft Fabric Community Forum.

Hi @Kayaa21,

 

As we have not received a response from you yet, I would like to confirm whether you have successfully resolved the issue or if you require further assistance.

 

Thank you.

Hi @Kayaa21,

 

Just checking in -- have you had a chance to review and try the provided solution? Kindly share the status whenever you get a chance.

Looking forward to your response.

rohit1991
Super User
Super User

Hi @Kayaa21 

This behavior is common when connecting Excel (OneDrive) to Power BI, and usually happens because of how the file path and credentials are set up. Here’s a complete checklist to fix it:

 

1. Check how your Excel is connected

  • If your file path in Power BI Desktop looks like this:
    C:\Users\<name>\OneDrive\Feedback.xlsx >> this is a local sync folder. Power BI Service cannot refresh it.
  • It must use the cloud URL (SharePoint/OneDrive link) like this:
    https://<tenant>.sharepoint.com/.../Feedback.xlsx  >> this works in both Desktop & Service.

Fix: Go to Get Data >>Web >> Paste OneDrive/SharePoint file link (copy the file’s URL from OneDrive in the browser). Reconnect using that.

 

2. Update credentials in Power BI Service

  1. Publish your report again after fixing the connection.
  2. In Power BI Service >> Workspace >> Dataset >> Settings >> Data source credentials.
  3. Re-enter your Microsoft 365 (OneDrive/SharePoint) login and make sure it shows valid.
  4. Now try “Refresh now”  it should pull the latest file.

3. If refresh still fails

  • Error: Gateway required >> You are still on a local path. Reconnect with the cloud URL.
  • Error: Access denied >> Make sure the account used in Power BI Service has access to that Excel file on OneDrive.
  • Error: Stale data in Desktop >> Clear Desktop cache (File >> Options >> Data Load >> Clear cache) and refresh again.

4. File locking issues (PowerApps + Excel)

If PowerApps is constantly writing into the Excel, sometimes the file gets locked and Power BI only sees the previous snapshot.

  • Long-term fix: Store PowerApps data in Dataverse or a SharePoint List instead of Excel. Power BI refresh against these sources is more reliable.

5. Best practice

  • Always connect via OneDrive/SharePoint online link, not local folder.
  • Use scheduled refresh in the Service (every 30 mins / 1 hour).
  • If you want real-time updates from PowerApps, consider SharePoint List or Dataverse.

Once you reconnect the file using the online URL and update credentials in the Service, your visuals will refresh correctly.


Did it work? ✔ Give a Kudo • Mark as Solution – help others too!

I managed to get the credentials working, thank you. However even though my semantic model is  refreshed now, my visuals are still stuck... 

Kayaa21_0-1759137720291.pngKayaa21_1-1759137761870.pngKayaa21_2-1759137785458.png

 

Hi @Kayaa21 

Great to hear credentials are working and the semantic model refresh succeeded. If visuals are still stuck, here are the key things to check:

  1. Force a visual refresh >> In your report, click the top-right “…” >> Refresh visuals. Or reload in an incognito browser to bypass cache.
  2. Confirm dataset binding >> Go to report settings and make sure the report is connected to the same semantic model that you just refreshed. Sometimes after republish, there are duplicate datasets and the report may be linked to the old one.
  3. Check workspace dataflow >> If you’re using dataflows, confirm the dataset is mapped correctly to the refreshed flow.
  4. Re-publish to resync >> From Power BI Desktop, open your PBIX and re-publish once more to overwrite the Service report + dataset binding.
  5. Clear browser cache >> Sometimes stale visuals are just cached in the browser.

In almost all cases, either the report is bound to an older dataset or cached visuals are showing. Once you force-refresh visuals or re-publish to align with the refreshed semantic model, your visuals should reflect the new data.

 


Did it work? ✔ Give a Kudo • Mark as Solution – help others too!

Hi @rohit1991,

 

I managed to get it work by choosing my data source as the excel table instead of sheet1 in excel. Not sure why the entries/data of the excel sheet1 and table does not match, but nonetheless thank you so much for providing the help! 

 

 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.