Resource locked by some minutes

Werik Santos 0 Reputation points
2024-03-19T13:32:26.2466667+00:00

Hello! I'm a software developer at Softplan company, who has a integration with microsoft word inside their products.

We're getting a issue with Word application. The problem is when the user open the document, edit same one and close the page. If the user wants to open again after close, Word don't open and return the message when oppening word executing the end point "https://graph.microsoft.com/v1.0/me/drive/items/{item-id}/content"

{

"error": {

    "code": "notAllowed",

    "message": "The resource you are attempting to access is locked",

    "innerError": {

        "code": "resourceLocked",

        "date": "2024-03-19T12:44:29",

        "request-id": "{item-id}",

        "client-request-id": "{request-id}"

    }

}
```}

Sometimes it takes some seconts, sometimes it take some minutes or more....  
  
I really would like to find a way to solve this, when the use close the Word page, the document should be free to be opened by same user again at the same moment if wants.

We also tried another endpoint we imaginate solve the problem:

[https://graph.microsoft.com/v1.0/drives/{drive-id}/items/item-id/retentionLabel]()  
  
but item-id don't or drive-id don't work on it.

So can we have some another way to solve this? 

I'm thankfull for while.

Word
Word
A family of Microsoft word processing software products for creating web, email, and print documents.
700 questions
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
3,599 questions
0 comments No comments
{count} votes