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

Open
suraj181818181818 opened this issue Nov 20, 2024 · 0 comments
Labels

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.

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

No branches or pull requests

1 participant