OneDrive PDF File opening error

brichardi 361 Reputation points
2023-05-17T14:45:23.19+00:00

Hello everyone.

We are in the process of migrating User Home drive to Office 365 OneDrive. The migration went well, but we have many users who report they got an error when opening PDF file.

"Access Denied. Before opening file in this location, you must first add the web site to your trusted site list. Browse to the web site and select the option to logon automatically".

I have confirmed that the https://xxxportal-my.sharepoint.com/ has been added to our Internet trusted site.

No problem with Office files.

Thanks for your help.

Microsoft 365 and Office | Install, redeem, activate | For business | Windows
Microsoft 365 and Office | SharePoint | For business | Windows
Microsoft 365 and Office | OneDrive | For business | Windows
{count} votes

Accepted answer
  1. Ling Zhou_MSFT 23,620 Reputation points Microsoft External Staff
    2023-05-23T03:05:33.3366667+00:00

    Hi @brichardi,

    Great to know that and thanks for sharing the update here.

    By the way, since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others.". and according to the scenario introduced here: Answering your own questions on Microsoft Q&A, I would make a brief summary of this thread:

    [OneDrive PDF File opening error]

    Issue Symptom:
    Some users got an error when opening PDF file.

    Current status:
    When you encounter this problem, you can:

    1, Check if the user has permission to access the issue.

    2, Check the Cloud Mapper agent that used to map OneDrive on pc.

    You could click the "Accept Answer" button for this summary to close this thread, and this can make it easier for other community member's to see the useful information when reading this thread. Thanks for your understanding!

    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Ling Zhou_MSFT 23,620 Reputation points Microsoft External Staff
    2023-05-18T09:01:57.3366667+00:00

    Hi @brichardi,

    I tested your issue on my side. I used the SharePoint migration tool (copy content from File Share) to migrate the user's primary drive to Office 365 OneDrive. My files open properly. It seems this is not a common issue per my test.

    The problem may be that the user does not have permission to access the PDF file, I suggest you go to check the permissions.

    1, View Office 365 OneDrive online.

    11

    2, Select the PDF file you want users to share and click__…__ , in the pop-up window, select share.

    1

    3, Go to" Shared with" page and select ADVANCE.

    13

    4, Click on Check Permissions in the PERMISSSIONS toolbar above. enter the user to see if they have permission to access this PDF.

    14

    If the user does not have permissions to this file, add the user by selecting Grant Permission in the PERMISSIONS toolbar.

    If the user has permissions but access is still denied. I suggest you remove the user and re-add permissions to him, clear the browser cache, and then try to open the PDF file after a few minutes. Because sometimes this setting takes effect with a certain delay.

    You can refer to this link to troubleshoot more reasons why OneDrive won't open files: 5 Ways to Fix OneDrive When You Cannot Open Your Files (makeuseof.com)

    Note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. Please make sure that you completely understand the risk before retrieving any suggestions from the above link. 

    I hope your problem will be solved successfully!


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  2. brichardi 361 Reputation points
    2023-05-18T17:52:10.3066667+00:00

    Thank you for replying to my question. After extensive research and testing, we have found that the issue is not with OneDrive, but rather with Cloud Mapper agent that we used to map OneDrive on user pc.

    Thanks for all your help.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.