0

I have a project that uses Microsoft Graph delta API to detect changes in OneDrive and SharePoint.

When a user creates a new document directly from Excel, Word, or PowerPoint (desktop application), my app can detect the change correctly via delta.

However, when I try to update the file content I get a 423 error, even after waiting more than 30 minutes after document is closed from mobile applications:

{
  "error": {
    "code": "notAllowed",
    "message": "The resource you are attempting to access is locked",
    "innerError": {
      "code": "resourceLocked",
      "date": "2025-09-09T14:41:17",
      "request-id": "ee2fe118-f693-43df-b5f4-b1024569327c",
      "client-request-id": "ee2fe118-f693-43df-b5f4-b1024569327c"
    }
  }
}

I am calling v1.0/sites/{siteId}/drives/{driveId}/items/{itemId}/content

I get notAllowed error only after document is created.

If User open the document second time with mobile applications, I can succesfully update the document.

Document should be updated when it created first time because it is not opened in any other users or machines. Why do I get this error and is there anyway to solve it?

3
  • Can you try adding a Prefer header to your request ? Prefer: bypass-shared-lock Commented Sep 9 at 16:12
  • Thanks for your response, tried but didn't work Commented Sep 10 at 7:56
  • still "resource is locked" error i am getting Commented Sep 10 at 7:57

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.