Resource '' does not exist or one of its queried reference-property objects are not present – C#

by
Ali Hasan
azure-active-directory azure-ad-b2c azure-ad-b2c-custom-policy c# microsoft-graph-api

The Problem:

A developer is trying to update a custom User Attribute called "role" in Azure AD B2C using the Microsoft.Graph library. However, the update operation is failing with the error message: "Resource ” does not exist or one of its queried reference-property objects are not present". The error message lacks a GUID, making it difficult to identify the problematic resource.

The Solutions:

Solution 1: Corrected Extension Id

The issue occurred due to an incorrect extension app id. The extension app id contained dashes (“-“), which needed to be removed. After removing the dashes, the code was able to successfully update the custom user attribute “role”.

Q&A

What was the cause of error message: Resource ” does not exist or one of its queried reference-property objects are not present

Extension app id had - which needed to be removed.

Video Explanation:

The following video, titled "Resource Management in Project For The Web - YouTube", provides additional insights and in-depth exploration related to the topics discussed in this post.

Play video

This event is perfect for anyone who wants to learn how to manage resources effectively in their projects. We will cover topics such as ...