why cant i share my excel getting the below issue

Waseem Kurreemun 0 Reputation points
2026-08-24T08:45:25.19+00:00

{"code":"-1, Microsoft.SharePoint.Client.ResourceNotFoundException", 

"message":"Cannot find resource for the request SP.RequestContext.current/web/GetFileByUrl(@a1)/ListItemAllFields/.","status":404,"correlationId":"...","targetUrl":"https://<tenant>-my.sharepoint.com/personal/<USER_REDACTED>/_api/web/GetFileByUrl(@a1)/ListItemAllFields/GetSharingInformation?@a1='<FILE_PATH_REDACTED>'"} 

[Moderator note: Personally Identifiable Information removed] 

Microsoft 365 and Office | SharePoint | For business | Windows

2 answers

Sort by: Most helpful
  1. Ruby Nguyen 1,560 Reputation points Independent Advisor
    2026-08-24T09:36:09.1233333+00:00

    Good day Waseem

    Based on your description, the error occurs because SharePoint cannot locate the workbook from the file path submitted by Excel. The sharing request points to a workbook stored in OneDrive, but SharePoint is unable to retrieve the corresponding file. 

    I recommend locating the workbook in OneDrive on the web and sharing it directly from there. 

    Sign in to office.com using your work account > Select App Launcher > OneDrive. 

    User's image

    Search for the workbook and verify that it hasn't been renamed, moved or deleted. 

    Open the folder where the workbook is stored and confirm that the file opens successfully. 

    Select the workbook and choose Share or Copy link to share it with your SharePoint group or intended recipients. 

    If you cannot find the workbook in OneDrive, please check your local device to see whether the file is stored in a different location and upload it to OneDrive before sharing it again. 

    I hope this information is helpful. If you have any questions or need further support, please don’t hesitate to reach out at any time. 

    Thank you for your patience and understanding. 


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

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

    Was this answer helpful?

    0 comments No comments

  2. AI answer

    2026-08-24T08:45:40.8666667+00:00

    A 404 ResourceNotFoundException during sharing commonly occurs when SharePoint cannot resolve the file as a shareable list item.

    If this Excel file is newly created in a library where Require documents to be checked out before they can be edited is set to Yes, and the file has never been checked in, external sharing can fail and return 404-style errors.

    Use this fix:

    1. Open the document library that contains the Excel file.
    2. Select the file’s ellipsis ().
    3. Select the second ellipsis.
    4. In Advanced, select Check In.
    5. Try sharing the file again.

    This action must be done by the file creator or an administrator.

    If sharing options such as Anyone or People in Microsoft are greyed out, check whether the site collection feature Limited-access user permission lockdown mode is enabled:

    1. Go to Site administration > Site settings.
    2. Select Site collection features.
    3. Deactivate Limited-access user permission lockdown mode.

    If the issue is related to organization sharing policy, a SharePoint administrator may need to review the tenant and site external sharing settings.


    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.