How to Fix OneDrive Embedded Files Displaying 'This Item Won't Load Right Now'
Question details
Users encounter a loading error when attempting to view OneDrive documents embedded in a website using an iframe.

- Product
- OneDrive
- Device & OS
- not provided
- Scenario
- Displaying a shared OneDrive or SharePoint document on a web page via an embed code.
- Observed behavior
- The embedded iframe fails to display the document and instead shows the error message 'This Item Won't Load Right Now'.
Verify that your internet connection is stable and check the Microsoft 365 Service Health dashboard to ensure there are no ongoing outages affecting OneDrive or SharePoint embed services.
Generate a New Embed Code and Update Permissions
Replacing the old embed code often resolves issues caused by changes in OneDrive URLs or SharePoint sharing policies.
Microsoft frequently updates its backend services, which can occasionally alter how embed URLs are formatted (such as switching from OneDrive to SharePoint URLs). Generating a fresh embed code ensures your website uses the most current and valid link structure.
Log in to your OneDrive or SharePoint online account via your web browser and navigate to the file you want to embed.
Right-click the document, select 'Share', and check the link settings. Ensure the permissions are set to 'Anyone with the link' so the file can be viewed publicly without requiring a login.
Select the file, click the three-dot menu (or look at the top toolbar), and select 'Embed'. Copy the newly generated iframe code.
Replace the old iframe code on your website's HTML with the newly generated embed code and refresh the page to test.

Troubleshoot Browser Security and Cookie Settings
Strict browser security settings or blocked third-party cookies can prevent embedded OneDrive files from authenticating and loading.
Experience Seamless Document Management with WPS Office
Tired of dealing with complex cloud permission errors and broken embed links? WPS Office provides a free, lightweight, and easy-to-use alternative to Microsoft Office. Enjoy a familiar user interface, seamless migration, and straightforward document sharing without the typical corporate IT hurdles.
- 1. Download and Install: Visit the official WPS Office website and download the free version for your operating system.
- 2. Open Your Documents: Launch WPS Office and open your existing Office files instantly without formatting loss.
- 3. Share with Ease: Use the built-in share feature to generate accessible links for your team or audience.

Frequently Asked Questions
Why did my OneDrive embed code suddenly stop working?
Embed codes can break if the original file's sharing permissions are modified, the file is moved to a new folder, or Microsoft updates its backend service URLs (such as migrating standard OneDrive URLs to SharePoint structures).
Do visitors need a Microsoft account to view embedded OneDrive files?
It depends entirely on the file's sharing settings. If you generated the embed link using 'Anyone with the link' permissions, visitors will not need to log in. If the permissions are restricted to specific people or your organization, unauthorized visitors will see a loading error.
Can third-party cookies affect iframe embeds?
Yes. Browsers with strict privacy settings often block third-party cookies by default. Since the iframe pulls content from a Microsoft domain onto your website, the browser may block it, resulting in the 'This Item Won't Load Right Now' error.




