SharePoint / SharePoint/sp-dev-docs
Wopiframe.aspx failed to load PDF file
@Ashlesha-MSFT is already working on this.
Since Apr 2, 2025.
- 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
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
- Upload a PDF file
- Get the UniqueId of that file or the path
- Construct the wopiframe.aspx URL
Expected behavior
An error message :
Sorry, something went wrong
An unexpected error has occurred.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.