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

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more

Reply
yamyam1
New Member

New, consistent refresh failures

I've been getting this error but have tried to re-authenticate my 4 source spreadsheets, and the error persists. How can I fix this?

 

Data source error: {"error":{"code":"DMTS_OAuthFailedToGetResourceIdError","pbi.error":{"code":"DMTS_OAuthFailedToGetResourceIdError","parameters":{},"details":[],"exceptionCulprit":1}}}

7 REPLIES 7
PauReis
Helper I
Helper I

@yamyam1 The suggestions so far all come back to re-entering the credentials, and your first sentence already says you did that across all four spreadsheets and the error persisted. I'd treat that as information rather than something to repeat, because a credential prompt can only fix a credential, and there's a documented way to break a file-based source that no amount of re-authenticating will touch.

 

Microsoft's data refresh doc says this about files hosted on OneDrive or SharePoint Online: "You can move the file to another location (using drag and drop, for example) and refresh will continue to work because Power BI still knows the file's item ID. However, if you copy that file to another location, a new instance of the file and new item ID is created. Therefore, your Power BI file reference is no longer valid and refresh will fail." That distinction is sharper than it looks, and it's the reverse of what most people check. Moving a spreadsheet is safe. Copying one is not.

 

So the question isn't whether the files moved, it's whether any of the four quietly stopped being the same file. A Save As over the top, a new version uploaded rather than edited in place, a restore from the recycle bin or a backup, a library or site migration, someone rebuilding the sheet and re-uploading it. Every one of those produces a new item ID sitting at the same path, so it looks completely normal in the browser while Power BI is still holding a reference to something that no longer exists.

 

Two things worth pinning down before you change anything else. Which of the four is actually failing? With four spreadsheets it's easy to spend an afternoon re-authenticating three that were never broken. And your own title says new and consistent, which is a useful detail rather than a throwaway one, because a token or throttling problem tends to come and go, while a reference pointing at a file that no longer exists fails every single time in exactly the same way. Consistent fits the second one better than the first.

 

When did the first failure land, and does that date line up with anything being re-uploaded, restored or migrated on the SharePoint or OneDrive side of things?

Someone moved a source spreadsheet and moved it back. How do I fix this?

@yamyam1 Worth knowing up front that what you've described shouldn't have broken anything, going by Microsoft's own wording. The refresh doc is explicit that a move is safe: "You can move the file to another location (using drag and drop, for example) and refresh will continue to work because Power BI still knows the file's item ID." It's the copy that kills it, because "a new instance of the file and new item ID is created."

 

That's not me dismissing what you found, it's the useful part. It narrows the question from "did it move" to "was it actually a move", and those two look identical afterwards. A drag and drop inside the same library is a real move and keeps the item ID. Anything that went out and came back a different way, so download and re-upload, Save As, a restore from the recycle bin or from a backup, a Move To across libraries or sites, creates a new file object with a new item ID even when the name and the path end up exactly where they started. Somebody putting a file back "where it was" is honestly more likely to have done one of those than a clean drag.

 

There's a free way to tell which happened and it takes about ten seconds. Open the file in SharePoint and look at Version history. Move To carries the history with it, in Microsoft's words "When you use Move to, the history of the document is copied to the new destination", whereas "When you use Copy to with documents that have version history, only the latest version is copied." So:

 

If the history runs continuously back past the day this happened, it's the same file with the same item ID, the move isn't your cause, and I'd stop there and look elsewhere.

 

If the history starts fresh at version 1.0 dated around the incident, it's a new file wearing the old one's name. That's your answer, and it also explains the two things that must be baffling you: why moving it back didn't fix it, and why re-authenticating all four spreadsheets got you nowhere. The credential was never the problem. The thing the model is pointed at stopped existing.

 

If it's the second one, the repair is on the Power BI side rather than the SharePoint side. Open the model in Desktop, go into Power Query, and look at the Source step for that one spreadsheet. If the URL has sourcedoc= followed by a GUID in it, that GUID is the old file's identity and it's the thing that stopped resolving, so re-navigate to the file through Get Data rather than editing the URL by hand and let it pick up the new identity properly. If the URL is instead a plain folder and filename path with no GUID in it, then this isn't your problem, and it's worth knowing that before you spend an afternoon on it.

 

One thing that saves time either way: you don't have to guess which of the four it is. Open the semantic model's refresh history in the service and look at the error detail on the failed run, it names the data source it choked on. That's the only one you need to touch.

Ray_Minds
Solution Supplier
Solution Supplier

Here are the most common causes and how to troubleshoot them.
 
 Verify the actual data source
This error is most commonly seen with SharePoint Online and OneDrive sources when the OAuth token or URL no longer matches.
 
1. Remove and re-enter the credentials in power Bi Service
 
1. Go to Workspace → Semantic model → Settings
2. Open  Data source credentials
3. edit the credential
4. Sign in again using OAuth2 / Organizational account
 
2. Check whether the file location changed or not from the actual location which we're using
 
* does anyone moved the spreadsheet ?
* does anyone renamed the SharePoint site ?,
* does anyone changed the document library ?,
* or switched from a personal OneDrive to a SharePoint Team Site
 
In that case the stored OAuth resource may no longer be valid.
 
3. We can also debug in the power bi Desktop Local
 
1. Open Transform Data in Power Query
2. Click on the Data Source Setting from the ribbon
3. Then click on the Data Source in the current file
4. Edit Permission Then edit the credential
5. Use OAuth2 authentication and privacy level will be organizational and then ok
 
4. Test a manual refresh in Desktop
* Refresh locally.
* If it succeeds, republish the dataset.
* If it fails locally, Power Query may identify which source is causing the issue.
Yasas_99
New Member

Try clearing the permissions for all four data sources from Data Source Settings, restart Power BI, and sign in again. Also check that all sources are using the same authentication method and that your account has the required access to the files. This should resolve the OAuth-related error.

GilbertQ
Super User
Super User

Hi @yamyam1 

 

If you can confirm that your password hasn't changed, as sometimes a new password can cause these issues.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

ShivekMaharaj
Continued Contributor
Continued Contributor

Hi @yamyam1,

 

Since reauthenticating all four spreadsheets did not resolve it, I would next check how each file is connected rather than repeating the sign-in process.

 

In the Power BI Service, open the semantic model’s Settings and review Gateway and cloud connections or Data source credentials. I would confirm that every spreadsheet source is mapped to the expected connection and uses OAuth2 with an account that can still access the file.

 

If the spreadsheets are stored in SharePoint Online or OneDrive for work or school, I would also check the following:

  • All files are in the same Microsoft 365 tenant as Power BI.
  • The account used for OAuth is the same organizational account that has access to the files.
  • The Power Query sources use consistent SharePoint site addresses rather than a mixture of sharing links, redirected URLs and direct file URLs.
  • The authentication scope is applied at the correct SharePoint site level.

Microsoft notes in its Power BI refresh troubleshooting guidance that SharePoint Online OAuth refresh requires the appropriate organizational account and does not support cross-tenant OAuth scenarios. For OneDrive or SharePoint-hosted files, Microsoft also recommends selecting OAuth2 in the refresh settings, as explained in its guidance for importing SharePoint and OneDrive files.

 

I would then open the PBIX in Power BI Desktop, go to File → Options and settings → Data source settings, clear the permissions for the affected sources, reconnect, refresh successfully in Desktop and republish. Microsoft documents this credential-management process in its Power Query authentication guidance.

 

If the queries currently use copied sharing links or the generic Web connector, I would consider rebuilding them with the SharePoint Folder connector and the root site URL. Microsoft’s SharePoint Folder connector documentation provides the supported connection pattern.

 

The most useful next detail would be whether the four spreadsheets are in SharePoint, OneDrive or another service, and whether they all use the same tenant and connection method. That should help narrow down which source is preventing Power BI from resolving the OAuth resource.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

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

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Kudoed Authors