Skip to content

Wopiframe.aspx failed to load PDF file #10180

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
9 tasks
Circlet-ND opened this issue Apr 2, 2025 · 21 comments
Open
9 tasks

Wopiframe.aspx failed to load PDF file #10180

Circlet-ND opened this issue Apr 2, 2025 · 21 comments
Assignees
Labels
Needs: Author Feedback Awaiting response from the original poster of the issue. Marked as stale if no activity for 7 days. sharepoint-developer-support sharepoint-developer-support type:bug-confirmed Confirmed bug, not working as designed / expected.

Comments

@Circlet-ND
Copy link

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.

@Circlet-ND Circlet-ND added the type:bug-suspected Suspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs. label Apr 2, 2025
@Ashlesha-MSFT
Copy link

Hello @Circlet-ND,
Thank you for bringing this issue to our attention. We will look into it and get back to you shortly.

@Ashlesha-MSFT Ashlesha-MSFT self-assigned this Apr 2, 2025
@Ashlesha-MSFT Ashlesha-MSFT added the sharepoint-developer-support sharepoint-developer-support label Apr 2, 2025
@Ashlesha-MSFT
Copy link

@Circlet-ND,
I uploaded PDF to document library, copied its URL then Iin ASPX page I added link web parts and added that copied URL there.
After republishing I am not able to see any error while opening the pdf file.

Image

Please help with your inputs to reproduce the error.

@Ashlesha-MSFT Ashlesha-MSFT added the Needs: Author Feedback Awaiting response from the original poster of the issue. Marked as stale if no activity for 7 days. label Apr 2, 2025
@Circlet-ND
Copy link
Author

Circlet-ND commented Apr 2, 2025

@Ashlesha-MSFT Thanks for the prompt reply. Can you try both the uniqueID and the path from below methods please? The issue is with the WopiFrame.aspx page

Unique ID

To get the uniqueId of the document,

  1. Right click on the document and click "Preview"
    Image
  2. Click "Embed" from the ... options
Image
  1. Copy the UniqueId
Image
  1. Construct the URL
    https://YourTenant.sharepoint.com/sites/YourSite/_layouts/WopiFrame.aspx?sourcedoc={(UniqueIdHere)}&action=interactivepreview

Sample (please ensure that it includes the curly brackets) :
https://contoso.sharepoint.com/sites/HR/_layouts/WopiFrame.aspx?sourcedoc={962d2457-ccff-4043-8f7d-767872076a71}&action=interactivepreview

  1. Copy and paste that URL in a new tab

Using Relative Path

You can also use the relative path of that file as the sourcedoc parameter
Relative path format: /sites/SiteName/DocumentLibraryName/test.pdf
Relative path sample: /sites/HR/Shared%20Documents/test.pdf

https://YourTenant.sharepoint.com/sites/YourSite/_layouts/WopiFrame.aspx?sourcedoc=/sites/HR/Shared%20Documents/test.pdf&action=interactivepreview

Sample:
https://contoso.sharepoint.com/sites/HR/_layouts/WopiFrame.aspx?sourcedoc=/sites/HR/Shared%20Documents/test.pdf&action=interactivepreview

Copy and paste that URL in a new tab

@Ashlesha-MSFT
Copy link

Ashlesha-MSFT commented Apr 2, 2025

@Circlet-ND,
Thank you for detailed explanation.
For my tenant getting expected behavior.
created sample link like this -
https://{{TENANT}}/sites/first/_layouts/WopiFrame.aspx?sourcedoc={009e933c-95f6-4e10-9713-698625c4a7fb}&action=interactivepreview

Image

Also tried with this, below relative path URL this is also working.
https://{{TENANT}}/sites/first/_layouts/WopiFrame.aspx?sourcedoc=/sites/first/pdf/test.pdf&action=interactivepreview

Image

@Ashlesha-MSFT Ashlesha-MSFT added type:bug-confirmed Confirmed bug, not working as designed / expected. Needs: Author Feedback Awaiting response from the original poster of the issue. Marked as stale if no activity for 7 days. and removed Needs: Author Feedback Awaiting response from the original poster of the issue. Marked as stale if no activity for 7 days. labels Apr 2, 2025
@Circlet-ND
Copy link
Author

@Ashlesha-MSFT Thank you. Some of our clients are not affected yet. Are you able to test this in other tenants?

@Ashlesha-MSFT
Copy link

@Circlet-ND,
I able to reproduce the issue in another tenant.

Image

As it works differently, we can confirm that this is the bug. We have logged this as a bug, and our engineering team will look into it.
Thank you for your patience!

@adidos87
Copy link

adidos87 commented Apr 3, 2025

Hola, just to say that we have same problem from Yesterday on our tenant.

@PieterVandendriessche
Copy link

PieterVandendriessche commented Apr 3, 2025

Noticing change in behaviour in our client's tenant.

@asechko
Copy link

asechko commented Apr 3, 2025

hello, we have the same problem on our tenant, and more than hundred of our customers are also affected

@jonathanhotono
Copy link

our client tenants are affected too and this needs to be rectified ASAP as it is quite a blocker.

@lamacoding
Copy link

We also have the issue. Thousands of people are currently affected in our company.

@ChetanSharma-msft ChetanSharma-msft removed the type:bug-suspected Suspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs. label Apr 8, 2025
@benderke
Copy link

benderke commented Apr 8, 2025

We have the same issue with some of our customers. Been looking a the issue for a while before I found this issue... Please fix ASAP; we get loads of customer complaints.

@DKnudsen-VB
Copy link

Experiencing the same issue here. Hoping for a solution. Thanks!

@adidos87
Copy link

adidos87 commented Apr 9, 2025

@Circlet-ND, I able to reproduce the issue in another tenant.

Image

As it works differently, we can confirm that this is the bug. We have logged this as a bug, and our engineering team will look into it. Thank you for your patience!

Hi, could you share with us if you have any idea of how many time you need to solve this bug? our customer are locked , thanka a lot

@PieterVandendriessche
Copy link

PieterVandendriessche commented Apr 9, 2025

Hi all
Feedback from Microsoft Premier support:

Image

@adidos87
Copy link

adidos87 commented Apr 9, 2025

Hi, i confirm that with embed.aspx it works, but isn't possible to download file. Is there some parameter to use?

@Circlet-ND
Copy link
Author

Hi all Feedback from Microsoft Premier support:

Image

The Wopiframe.aspx will eventually redirect to doc.aspx with the same format.
The Doc.aspx URL is in the ServerRedirectedEmbedUrl property returned from Sharepoint directly and I am not sure why the engineering team called it not the correct way.
Image

In addition, the Embed.aspx will not work with excel, csv, and similar tabular data as noted here:
#9925

@Vansyork
Copy link

Hello,

We are experiencing the same issue in our tenant.
Thousands of files are now difficult to consult.

Any e.t.a. on resolving the issue?

Thank you.

@smrmbrk
Copy link

smrmbrk commented Apr 11, 2025

Same issue in our tenant

@MikeBELLEM
Copy link

Same issue in our tenant

@DominicSaladin
Copy link

We’re affected by this issue as well. It’s causing disruption on our side, is there any ETA for a fix?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs: Author Feedback Awaiting response from the original poster of the issue. Marked as stale if no activity for 7 days. sharepoint-developer-support sharepoint-developer-support type:bug-confirmed Confirmed bug, not working as designed / expected.
Projects
None yet
Development

No branches or pull requests