This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
Hi,
I have couple PBI reports with data source from one sharepoint site, and they were refreshed successfully in past years until recently. The scheduled refresh randomly failed on multiple reports with below error message:
Data source errorDataSource.Error: SharePoint: Request failed: Unable to connect to the remote server. Microsoft.Data.Mashup.ErrorCode = 10122. Microsoft.Data.Mashup.ValueError.DataSourceKind = SharePoint.
The error is not happening on every refresh, around 80% of refreshes are successful; The error is not happening for every report with the same datasource, 80% of the reports are still fine, not sure what caused this issue, quite annoying.
Thanks in Advance
Solved! Go to Solution.
Hi @Gris,
This issue is due to unavilability of Sharepoint site, this could be because of one of the reasons below:-
🌟 I hope this solution helps you unlock your Power BI potential! If you found it helpful, click 'Mark as Solution' to guide others toward the answers they need.
💡 Love the effort? Drop the kudos! Your appreciation fuels community spirit and innovation.
🎖 As a proud SuperUser and Microsoft Partner, we’re here to empower your data journey and the Power BI Community at large.
🔗 Curious to explore more? [Discover here].
Let’s keep building smarter solutions together!
Hi @Gris,
Error code 10122 in Power BI's Mashup engine means the connection to the remote server timed out or was refused - not a permissions error. The intermittent, ~20% failure rate pattern is the classic signature of OAuth access token expiry mid-refresh combined with transient SharePoint Online throttling.
OAuth access tokens are valid for around 60–90 minutes. When Power BI Service connects to SharePoint Online, it obtains a token at the start of the refresh. If the data load runs long or the token isn't renewed in time, the connection drops — which is exactly why it fails randomly and not every time.
This is the most common fix for your exact symptom.
This resolves the issue when the OAuth refresh token used by Power BI Service has expired or gone stale — Power BI will then use a fresh token going forward. Microsoft Fabric Community
For SharePoint Online, configure an App Registration with a Client Secret or Certificate and authenticate using a Service Principal. Service Principals do not expire like user tokens, are not tied to individual user accounts, and offer far more stable scheduled refreshes.
Steps:
This eliminates the problem permanently.
Make sure the account used in the Gateway is an Owner (not just Member) on the SharePoint Site — this has resolved intermittent refresh failures for multiple organizations. Microsoft Fabric Community
Also:
If using the SharePoint Folder connector, try switching to the Web connector instead, using the direct file URL format: https://yourorg.sharepoint.com/sites/<sitename>/Shared Documents/<filename>.xlsx
Also clear cached permissions first via: File → Options and Settings → Data Source Settings → Global permissions → Clear permissions for the SharePoint source.
Since the failure is intermittent and affects only some reports, SharePoint Online may be throttling simultaneous requests from multiple reports hitting the same site. Spread your refresh schedules by 15–30 minutes across reports to avoid simultaneous connections to the same SharePoint site.
This is because:
Hope this resolves your problem
Thanks and Regards
GainInsights Solution
Trusted Microsoft Partner - https://gain-insights.com/partnerships/microsoft/
www.gain-insights.com
Hi @Gris,
Error code 10122 in Power BI's Mashup engine means the connection to the remote server timed out or was refused - not a permissions error. The intermittent, ~20% failure rate pattern is the classic signature of OAuth access token expiry mid-refresh combined with transient SharePoint Online throttling.
OAuth access tokens are valid for around 60–90 minutes. When Power BI Service connects to SharePoint Online, it obtains a token at the start of the refresh. If the data load runs long or the token isn't renewed in time, the connection drops — which is exactly why it fails randomly and not every time.
This is the most common fix for your exact symptom.
This resolves the issue when the OAuth refresh token used by Power BI Service has expired or gone stale — Power BI will then use a fresh token going forward. Microsoft Fabric Community
For SharePoint Online, configure an App Registration with a Client Secret or Certificate and authenticate using a Service Principal. Service Principals do not expire like user tokens, are not tied to individual user accounts, and offer far more stable scheduled refreshes.
Steps:
This eliminates the problem permanently.
Make sure the account used in the Gateway is an Owner (not just Member) on the SharePoint Site — this has resolved intermittent refresh failures for multiple organizations. Microsoft Fabric Community
Also:
If using the SharePoint Folder connector, try switching to the Web connector instead, using the direct file URL format: https://yourorg.sharepoint.com/sites/<sitename>/Shared Documents/<filename>.xlsx
Also clear cached permissions first via: File → Options and Settings → Data Source Settings → Global permissions → Clear permissions for the SharePoint source.
Since the failure is intermittent and affects only some reports, SharePoint Online may be throttling simultaneous requests from multiple reports hitting the same site. Spread your refresh schedules by 15–30 minutes across reports to avoid simultaneous connections to the same SharePoint site.
This is because:
Hope this resolves your problem
Thanks and Regards
GainInsights Solution
Trusted Microsoft Partner - https://gain-insights.com/partnerships/microsoft/
www.gain-insights.com
Thanks Sharmila Brisca for your detail instructions! I applied several of them and will monitor to see if i can get less failures.
Hi @Gris,
This issue is due to unavilability of Sharepoint site, this could be because of one of the reasons below:-
🌟 I hope this solution helps you unlock your Power BI potential! If you found it helpful, click 'Mark as Solution' to guide others toward the answers they need.
💡 Love the effort? Drop the kudos! Your appreciation fuels community spirit and innovation.
🎖 As a proud SuperUser and Microsoft Partner, we’re here to empower your data journey and the Power BI Community at large.
🔗 Curious to explore more? [Discover here].
Let’s keep building smarter solutions together!
Thanks Grazitti for your solution! I tried to give more time gap on scheduled refresh time for my reports, will see if that's helpful.
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 |
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |