microsoftgraph / microsoftgraph/msgraph-beta-sdk-dotnet
Graph SDK V5: _graphClient.DeviceAppManagement.MobileApps[appId].PatchAsync(mobileApp) throw an Exception
Open
Nobody has claimed this yet.
Bug: metadata
OpenApi
- Dominant language
- C#
- Stars
- 112
- Forks
- 37
- Avg merge
- 14h 57m
- Merged PRs (30d)
- 3
Description
I try to update a property of a MobileApp using PatchAsync and receive an Exception: ModelValidationFailure with message: Exception has been thrown by the target of an invocation.
var mobileApp = await _graphClient.DeviceAppManagement.MobileApps[appId].GetAsync();
mobileApp!.Description = "New Description";
await _graphClient.DeviceAppManagement.MobileApps[appId].PatchAsync(mobileApp);
What am I doing wrong?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the C# example that retrieves a mobile app, changes Description, and calls PatchAsync. Inspect the resulting ModelValidationFailure and determine whether the failure comes from the request model or SDK behavior; done means documenting the correct usage or identifying a reproducible SDK defect and its expected fix.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- api
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100