SharePoint / SharePoint/sp-dev-docs

Wopiframe.aspx failed to load PDF file

Open
#10,180 26 comments 0 reactions 1 assignee View on GitHub

@Ashlesha-MSFT is already working on this.

Since Apr 2, 2025.

sharepoint-developer-support type:bug-confirmed
Dominant language
PowerShell
Stars
1.4k
Forks
1.1k
Avg merge
4d 12h
Merged PRs (30d)
12

Description

Target SharePoint environment

SharePoint Online

What SharePoint development model, framework, SDK or API is this about?

💥 SharePoint Framework

Developer environment

None

What browser(s) / client(s) have you tested
  • 💥 Internet Explorer
  • 💥 Microsoft Edge
  • 💥 Google Chrome
  • 💥 FireFox
  • 💥 Safari
  • mobile (iOS/iPadOS)
  • mobile (Android)
  • not applicable
  • other (enter in the "Additional environment details" area below)
Additional environment details
  • happened in most of our client tenants and our tenant, some tenants are not affected
Image
Describe the bug / error

We’re using wopiframe.aspx to generate previews for PDF files in our webparts. Until yesterday, everything was functioning as expected. However, today we received several client reports indicating that PDF previews are not displaying properly. We suspect that the gradual rollout across tenants may soon impact more users. Could someone please investigate this issue? Thank you!

The URL format is below :
Using UniqueId:
https://tenant.sharepoint.com/sites/Operations/_layouts/WopiFrame.aspx?sourcedoc={9af85718-3c5a-4fec-9777-bbe609e610ec}&action=interactivepreview
OR using relative Path
https://tenant.sharepoint.com/sites/Operations/_layouts/WopiFrame.aspx?sourcedoc=%2Fsites%2FOperations%2FShared%20Documents%2FRefunds.pdf&action=interactivepreview

Steps to reproduce
  1. Upload a PDF file
  2. Get the UniqueId of that file or the path
  3. Construct the wopiframe.aspx URL
Expected behavior

An error message :
Sorry, something went wrong
An unexpected error has occurred.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.