A Microsoft file hosting and synchronization service.
(Please note that our forum is a public platform, and we will modify your question to hide your personal information in the description. Kindly ensure that you hide any personal or organizational information the next time you post an error or other details to protect personal data. Also, please check your private message in case you want to share another screenshot to avoid leaking your PII)
Hi, Phyllis Pierce
The 401 invalid_client and BadContextToken details point to an expired or mismatched sign-in token rather than a problem with the file itself. This can happen when several Microsoft accounts are signed in within the same browser or Windows session.
Besides the solutions provided by the Q&A Assist, here are some suggestions you can try:
Open an InPrivate or Incognito window, sign in only with the Microsoft account that owns the OneDrive, and try sharing again. If it works there, clear the browser cookies and cached data for Microsoft and OneDrive sites. Private browsing is a recommended test for authentication-related access errors.
On Windows, clear the stored OneDrive sign-in information by following the steps in Clear OneDrive cached credentials, then restart OneDrive and sign in again.
Try uploading a copy of the file with a different name, then share the copy. This helps determine whether the sharing information attached to the original item is damaged.
If it still fails, contact Microsoft Support and provide the error code and correlation ID. Avoid posting the full diagnostic details publicly because they contain account-specific identifiers.
Please be advised that this is a user-to-user support forum. Moderators and contributors, including external Microsoft employees, are not allowed to directly interfere with Microsoft product features or access back-end systems. Our role is limited solely to providing technical guidance on reported incidents, requests, or ideas.
Thank you for your patience in reading, I hope this information has been helpful to you.
If the answer is helpful, please click "Yes" 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.