You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I try to add a new site collection term group, I receive the following message:
[termGroupModel] Cannot read the value '2' as a quoted JSON string value.
With this stacktrace:
PnP.Core.MicrosoftGraphServiceException: Microsoft Graph service exception
at PnP.Core.Services.BatchClient.ExecuteMicrosoftGraphInteractiveAsync(Batch batch)
at PnP.Core.Services.BatchClient.ExecuteMicrosoftGraphBatchAsync(Batch batch)
at PnP.Core.Services.BatchClient.ExecuteBatch(Batch batch)
at PnP.Core.Model.BaseDataModel`1.BaseAdd(ApiCall postApiCall, Func`2 fromJsonCasting, Action`1 postMappingJson)
at PnP.Core.Model.BaseDataModel`1.AddAsync(Dictionary`2 keyValuePairs)
at PnP.Core.Model.SharePoint.TermGroupCollection.AddAsync(String name, String description, TermGroupScope scope)
Steps to reproduce
Call this method and see the exception being thrown:
var store = await pnpContext.TermStore.GetAsync();
var termGroup = await store.Groups.AddAsync(name: "Group name", scope: TermGroupScope.SiteCollection);
Expected behavior
I expect the term group being created under the site collection scope without any exceptions.
@stefan-at-ilionx : I've added fix for this issue, will appear in the next nightly build (version 1.8.20 or higher). Thanks for using PnP Core SDK and reporting this issue.
Category
Describe the bug
When I try to add a new site collection term group, I receive the following message:
[termGroupModel] Cannot read the value '2' as a quoted JSON string value.
With this stacktrace:
Steps to reproduce
Call this method and see the exception being thrown:
Expected behavior
I expect the term group being created under the site collection scope without any exceptions.
Environment details (development & target environment)
The text was updated successfully, but these errors were encountered: