Share via

How to fix microsoft word sharing error code?

Edington, Chevy 0 Reputation points
2026-05-01T01:29:05.35+00:00

{"code":"-1, Microsoft.SharePoint.Client.ResourceNotFoundException","message":{"lang":"en-US","value":"Cannot find resource for the request SP.RequestContext.current/web/GetFileByUrl(@a1)/ListItemAllFields/."},"codes":{"order":["SPServiceResponse"],"map":{"SPServiceResponse":{"source":"SPServiceResponse","code":"-1, Microsoft.SharePoint.Client.ResourceNotFoundException","message":"Cannot find resource for the request

Microsoft 365 and Office | SharePoint | For business | Windows
0 comments No comments

2 answers

Sort by: Most helpful
  1. Sophie N 16,055 Reputation points Microsoft External Staff Moderator
    2026-05-01T02:09:25.1333333+00:00

    Dear @Edington, Chevy,

    I understand that you are encountering a "ResourceNotFoundException" when attempting to share a Microsoft Word document. To provide you with the most accurate solution and resolve this as quickly as possible, I need a bit more information to narrow down the root cause.

    Could you please clarify the following details regarding the error?

    • Does this error occur while using the Word Desktop application, or does it also happen when using Word on the Web (via a browser)?
    • Is the document you are trying to share stored in a personal OneDrive, a SharePoint Team site, or a Shared Library?
    • Is this happening with one specific document, or are you unable to share any documents within that specific folder or site?
    • Has this file recently been moved to a different folder or renamed?
    • How are you opening the document? For example, are you opening it directly from the "Recent" list in Word, or are you navigating to it through a synced folder in File Explorer?

    Once I have these details, I will be able to provide the specific troubleshooting steps needed to fix the connection to the SharePoint resource.

    Was this answer helpful?


  2. AI answer

    2026-05-01T01:29:16.6066667+00:00

    The error indicates that Word/SharePoint cannot find the file at the URL being used when trying to get its sharing information. In SharePoint/OneDrive this typically happens when:

    • The file has been moved, renamed, or deleted.
    • The file is new in a library that requires check‑out and has never been checked in.

    To fix it, verify both the file and the library settings:

    1. Confirm the file actually exists at the path
      • In OneDrive/SharePoint, browse to the folder path shown in the error and make sure the document is present and the name (including spaces and punctuation) matches exactly.
      • If the file was moved or renamed, open it from its current location and try sharing again from there.
    2. If the library requires check‑out, check in the file
      • Go to the document library where the file is stored.
      • Locate the document.
      • Select the ellipsis (…) for the file, then the second ellipsis (…), go to Advanced, and choose Check In.
      • After the file is checked in, try the sharing operation again.
      When Require documents to be checked out before they can be edited? is set to Yes, newly created files cannot be shared until they are checked in. External users or sharing APIs may see 404/ResourceNotFound errors in this state.
    3. If the error persists only when sharing externally
      • Ensure the file opens normally in Word/Word Online from OneDrive/SharePoint.
      • Then re‑initiate sharing from the UI (Share button) rather than from a cached or old link.

    If the document is missing at that path, recreate it or upload it again to the correct folder and then share from the new location.


    References:

    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

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.