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?
Preferheader to your request ?Prefer: bypass-shared-lock