Why I get "Resource does not exist or one of its queried reference-property objects are not present" error when I get changeType=UPDATED MS change notification for my Users resources

testfestAdmin 0 Reputation points
2024-08-21T05:22:47.3+00:00

I subscribed to MS users resources successfully and can receive the change notification, however when I try to call the get user API, I always get below error.
does not exist or one of its queried reference-property objects are not present

Could you help check one of the requestID to see why it happened? Thanks.

Non success response received from MicrosoftGraphApisResponse where statusCode=404 response={"error":{"code":"Request_ResourceNotFound","message":"Resource 'c1a266dd-ddaa-4788-8c33-5d82b3181c84' does not exist or one of its queried reference-property objects are notpresent.","innerError":{"date":"2024-08-20T16:20:46","request-id":"9dc095ad-2afe-4d0c-a4b5-656e5f93c927","client-request-id":"9dc095ad-2afe-4d0c-a4b5-656e5f93c927"}}}

Microsoft Security | Microsoft Graph
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Danstan Onyango 3,906 Reputation points Microsoft Employee
    2024-08-26T09:58:34.61+00:00

    The error message typically means that the user with the ID does not exist or has been deleted in the tenant.

    When your application receives a change notification, it indicates that a change has occurred. However, it does not guarantee that the changed resource will be available when you try to access it. For instance, if a user is deleted immediately after being updated, your application may receive a change notification indicating the user was updated, but when your application tries to access the user, it gets a 404 Not Found error because the user has already been deleted.

    Does this only happen immediately or after a delay? Does it happen for all users or recently created users?

    My suggestion is to try the API call few times with a slight delay to handle scenarios like this.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.