Graph SDK V5: _graphClient.DeviceAppManagement.MobileApps[appId].PatchAsync(mobileApp) throw an Exception

Open
#699 10 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
csharp
Domain
api

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.

Description

Bug: metadata OpenApi

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?

Dominant language
C#
Stars
112
Forks
37
Avg merge
14h 57m
Merged PRs (30d)
3

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoftgraph/msgraph-beta-sdk-dotnet

All issues in microsoftgraph/msgraph-beta-sdk-dotnet

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.