Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to Upload File When MS Word Document Is Opened in Another Tab/System #3435

Closed
suraj181818181818 opened this issue Nov 20, 2024 · 3 comments

Comments

@suraj181818181818
Copy link

Unable to Upload File via createUploadSession When Document is Open in MS Word

Description

I am encountering an issue where I cannot upload a file to an existing MS Word document stored in OneDrive when the document is open in MS Word (either in another tab or on a different system). The upload attempt using the createUploadSession API fails with the following error:

{
  "error": {
    "code": "notAllowed",
    "innerError": { "code": "resourceLocked" },
    "message": "The resource you are attempting to access is locked"
  }
}

What is Needed

I am requesting guidance or a solution to handle this scenario where a document locked for editing needs to be updated programmatically.

Request

I would appreciate:

  1. A workaround or API-level solution for this scenario.
  2. Insights into why locked documents are not updatable via createUploadSession.
  3. Suggestions on how to manage file updates in this use case.

Impact

This limitation impacts real-time workflows where:

  • Users collaborate on documents actively being edited.
  • Automated systems need to update documents that might still be open.

Such scenarios hinder seamless integration and real-time document updates.

@ElinorW
Copy link
Contributor

ElinorW commented Jan 8, 2025

Hi @suraj181818181818 ,
Thank you for the detailed description of your issue.
Our team specializes in maintaining Graph Explorer. Unfortunately, we are not equipped to directly address or troubleshoot issues related to specific API behaviors, such as the one you’re experiencing with createUploadSession and locked resources.
I recommend raising this issue on Microsoft Graph Q&A forum where the API teams can provide more assistance

Copy link
Contributor

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.

Copy link
Contributor

Hello @suraj181818181818

Thank you for reporting your concern. Unfortunately, we in the Graph Explorer team do not have any ownership of the APIs that are causing you issues. If you report this issue in the Microsoft Q&A forum, it will get routed to the appropriate team for them to triage.
https://aka.ms/askgraph
This issue will now be closed. If you encounter any issues with Graph Explorer in the future, please feel free to open an issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants