Resource <Random Guid> does not exist or one of its queried reference-property objects are not present

Sankarbala Manoharan 1 Reputation point
2022-07-21T15:21:19.82+00:00

I'm trying to a endpoint https://graph.microsoft.com/v1.0/groups?%24top=999&%24filter=############

Intermittently the same rest call failing with the error Message = "Resource '############' does not exist or one of its queried reference-property objects are not present.". It was occurring when I am calling the endpoint concurrently. Please suggest a way to resolve the issue.

Microsoft Security | Microsoft Entra | Microsoft Entra ID
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. AmanpreetSingh-MSFT 56,876 Reputation points Moderator
    2022-07-22T04:44:04.637+00:00

    Hi @Sankarbala Manoharan • Thank you for reaching out.

    As you have mentioned, the error occurred when the endpoint was called concurrently, I suspect that the problem is either due to throttling or if you are making frequent patch calls, your client app is not waiting enough for the replication to complete.

    In this case, you can implement an exponential back-off approach, i.e., On HTTP error code 4xx, your client:

    • Waits 1 second, retry the request
    • If it still failed wait for 2 seconds, retry the request
    • If it still failed wait for 4 seconds, retry the request
    • If it still failed wait for 8 seconds, retry the request
    • If it still failed wait for 16 seconds, retry the request
    • At this point, you should not be getting the error.

    -----------------------------------------------------------------------------------------------------------

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.


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.