OneDrive File Issues

How to Fix OneDrive Embedded Files Displaying 'This Item Won't Load Right Now'

Anum MushtaqAnum Mushtaq Oct 26, 2026 868 views

Question details

Users encounter a loading error when attempting to view OneDrive documents embedded in a website using an iframe.

How to Fix OneDrive Embedded Files: 'This Item Won't Load Right Now'
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'.
Before you start

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.

Solution 1Recommended

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.

1
Locate the file in OneDrive

Log in to your OneDrive or SharePoint online account via your web browser and navigate to the file you want to embed.

2
Verify sharing permissions

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.

3
Generate a new embed code

Select the file, click the three-dot menu (or look at the top toolbar), and select 'Embed'. Copy the newly generated iframe code.

4
Update your website

Replace the old iframe code on your website's HTML with the newly generated embed code and refresh the page to test.

Generate a New Embed Code and Update Permissions
Code Updated Successfully: If the file now loads correctly, the previous embed link was likely deprecated or invalidated by a permissions change.
Free Microsoft Office alternative

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. 1. Download and Install: Visit the official WPS Office website and download the free version for your operating system.
  2. 2. Open Your Documents: Launch WPS Office and open your existing Office files instantly without formatting loss.
  3. 3. Share with Ease: Use the built-in share feature to generate accessible links for your team or audience.
Fully compatible with Microsoft Word, Excel, and PowerPoint file formats.Free and lightweight design for fast installation and smooth performance.Familiar user interface makes migrating from Microsoft Office completely effortless.Built-in cloud features for easy and reliable document saving and sharing.
microsoft office alternative - wps office

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.