Sharepoint file link opens a deleted file

Tim Farrelly 1 Reputation point
2020-09-07T07:01:26.763+00:00

Working in a SharePoint within an o365 environment.

I have a file which I directly access from Word on my Win 10 PC via the following link
https://infocouncil.sharepoint.com/sites/TestCouncil9/Clients/Templates/PMH_Report.docx.
It exists in a document library with versioning turned off.

Via Sharepoint online I delete this file. It is now in the recycle bin.

I have a copy of this file on my Win 10 PC which I modify and then upload to the same Sharepoint folder.

Now when I directly open the file via the same link above, the old file opens.

Can anyone help me to understand what is going on here? And how I might prevent the old file opening on that link?

(The reason we use that link form is because we have a Word Add-in which knows the folder containing many template files and it dynamically chooses the template file to use.)

Thanks
Tim

Microsoft 365 and Office | SharePoint | For business | Windows
{count} votes

1 answer

Sort by: Most helpful
  1. Chelsea Wu 6,346 Reputation points Moderator
    2020-09-08T03:10:29.093+00:00

    Hi Tim, thank you for posting in the Q&A forum.

    I can reproduce this behavior in my SharePoint Online environment.
    When I open the newly uploaded document via the URL (https://<tenant>.sharepoint.com/sites/Site/Shared%20Documents/Folder/doc.docx), it opens the old document with a warning message in the client: “A newer version of this file is available on the server”.
    Then I click on “Discard Changes”, it displays the new document instead. After that, if I open the document via the URL again, this issue no longer exists.
    23078-annotation-2020-09-08-094903.png

    This scenario is possibly caused by a conflict of version in the Word client. When you open the copy from local drive to make changes, the client saves an earlier version to the local cache, which is loading the original document since you are using the same name for the newly uploaded document.

    I have not been able to find a solution to prevent this issue from happening. I would suggest you modify the document directly from SharePoint instead of reuploading a copy from local drive with the same file name.


    If an Answer is helpful, please click "Accept Answer" and upvote it.
    **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. **


Your answer

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