Skip to content

Commit e7e5132

Browse files
author
Simonx Xu
authored
Merge pull request #7941 from AmandaAZ/Branch-CI3158
AB#3158: Convert blog post to LMC article
2 parents 8e7c252 + aacd9c7 commit e7e5132

3 files changed

Lines changed: 32 additions & 0 deletions

File tree

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
title: 404 Error When Managing Objects Using Microsoft Graph
3+
description: Provides a solution to a 404 error when you try to manage a Microsoft Entra object that was just created using Microsoft Graph.
4+
ms.date: 01/07/2025
5+
ms.reviewer: kakapans, v-weizhu
6+
ms.service: entra-id
7+
ms.custom: sap:Problem with querying or provisioning resources
8+
---
9+
# 404 error when managing objects using Microsoft Graph
10+
11+
This article provides a solution to a 404 (object not found) error that occurs when you try to manage a Microsoft Entra object that was just created using Microsoft Graph.
12+
13+
## Symptoms
14+
15+
Suppose you create an object, such as a user, group, or application, in Microsoft Entra ID using Microsoft Graph. When trying to manage the object, such as getting, updating, or patching it, shortly after its creation, you receive a 404 (object not found) error. 
16+
17+
## Cause
18+
19+
The [Microsoft Entra ID architecture](/entra/architecture/architecture) ensures that all data is replicated across geographically distributed data centers. This issue occurs due to a replication delay in propagating the newly created object across all data centers. This replication process might take several minutes to complete.
20+
21+
As shown in the following diagram, when your application makes a request via Microsoft Graph to create a user in Microsoft Entra ID, the service begins the replication process and returns an object for that user, which includes the user's ID and other relevant data used in your request. If your application immediately tries to update this user, it might connect to a replica that hasn't yet been updated with the new user object. So, you receive a 404 error because the user isn't found on that replica.
22+
23+
:::image type="content" source="media/404-not-found-error-manage-objects-microsoft-graph/404-not-found-error-diagram.png" alt-text="Diagram that explains the cause of the 404 error." border="false":::
24+
25+
## Solution
26+
27+
To resolve this issue, wait some time and retry the update request. If the 404 error still occurs after retrying, double your waiting time and try again. By allowing sufficient time for replication, you can prevent this error from happening again.
28+
29+
[!INCLUDE [Azure Help Support](../../../includes/azure-help-support.md)]
58.7 KB
Loading

support/entra/entra-id/toc.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,8 @@
238238
href: app-integration/graph-api-error-handling-invoke-restmethod.md
239239
- name: Troubleshoot Authorization RequestDenied error
240240
href: app-integration/troubleshoot-authorization-requestdenied-graph-api.md
241+
- name: 404 error when managing objects
242+
href: app-integration/404-not-found-error-manage-objects-microsoft-graph.md
241243
- name: Microsoft Entra User Provisioning and Synchronization
242244
items:
243245
- name: User Sign-in or password Problems
@@ -374,3 +376,4 @@
374376
href: user-prov-sync/exclude-user-primary-group.md
375377
- name: Yellow exclamation mark in Office 2013
376378
href: user-prov-sync/yellow-exclamation-mark-office2013.md
379+

0 commit comments

Comments
 (0)