A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Hello. Power Query no longer reliably connects to files on OneDrive Personal due to changes in how OneDrive generates and secures file links, especially around April 2025. Old workarounds using web.contents() with shared or embed URLs often break when the file link structure changes or authentication expires.
Are you trying to load the file via a web URL (shared or embedded), or are you using a locally synced OneDrive folder on your PC?
- Ensure your OneDrive is signed in and syncing.
- In File Explorer, locate the file under:
C:\Users\[YourName]\OneDrive\Documents\[YourFile.xlsx] - In Excel Power Query: Data → Get Data → From File → From Workbook → Select the file from that local path.
This avoids OneDrive's web authentication entirely and works as long as the file stays synced locally.
You can also try a modified link:
- In OneDrive web, right-click the file → Embed → extract the URL (it contains
resid=andauthkey=...). - Modify the URL to end with
&download=1or replace/embed?with/download?. - In Excel: Data → Get Data → From Web → paste this link.
- Choose Anonymous authentication if prompted.
This method lets you load the file directly from the cloud, but can break if the link structure or permissions change again.
These steps let you either bypass the cloud dependency entirely or connect via link if local sync isn't an option. Let me know what method you're aiming for and what happens when you try either.