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 trying to use Update-MgBetaOrganizationSettingPersonInsight to set IsEnabledInOrganization property, it fails with Unexpected character encountered while parsing value
To Reproduce
Steps to reproduce the behavior:
Run Update-MgBetaOrganizationSettingPersonInsight either with IsEnabledInOrganization or BodyParameter
See error that is thrown
Expected behavior
The cmdlet should update the setting that is intended to update
Describe the bug
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Debug Output
DEPURACIÓN: ============================ HTTP REQUEST ============================
HTTP Method:
PATCH
Absolute Uri:
https://graph.microsoft.com/beta/organization//settings/peopleInsights
Headers:
FeatureFlag : 00000043
Cache-Control : no-store, no-cache
User-Agent : Mozilla/5.0,(Windows NT 10.0; Microsoft Windows 10.0.22621; es-CR),PowerShell/5.1.22621.1778
Accept-Encoding : gzip
SdkVersion : graph-powershell-beta/2.9.0
client-request-id : 8387c3ba-9ae8-4ecb-a68a-09fdfbe9aaab
Body:
{
"isEnabledInOrganization": false
}
DEPURACIÓN: ============================ HTTP RESPONSE ============================
Status Code:
BadRequest
Headers:
Transfer-Encoding : chunked
Vary : Accept-Encoding
Strict-Transport-Security : max-age=31536000
request-id : d3613735-5a77-49e1-b70a-b3efdd226a9a
client-request-id : 8387c3ba-9ae8-4ecb-a68a-09fdfbe9aaab
x-ms-ags-diagnostic : {"ServerInfo":{"DataCenter":"South Central
US","Slice":"E","Ring":"5","ScaleUnit":"000","RoleInstance":"SN1PEPF000160FD"}}
Cache-Control : no-cache
Date : Fri, 10 Nov 2023 14:26:13 GMT
Body:
{
"error": {
"code": "UnknownError",
"message": "{"errors":{"":["Unexpected character encountered while parsing value: . Path '', line 0, position
0."]},"type":"https://tools.ietf.org/html/rfc7231#section-6.5.1\",\"title\":\"One or more validation errors
occurred.","status":400,"traceId":"00-d36137355a7749e1b70ab3efdd226a9a-43c47a25bc4e894a-01"}",
"innerError": {
"date": "2023-11-10T14:26:14",
"request-id": "d3613735-5a77-49e1-b70a-b3efdd226a9a",
"client-request-id": "8387c3ba-9ae8-4ecb-a68a-09fdfbe9aaab"
}
}
}
Module Version
2.9.0 Microsoft.Graph.Beta
Environment Data
Name Value
PSVersion 5.1.22621.1778
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.22621.1778
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
Screenshots
Additional context
The call also fails using Graph Explorer
The text was updated successfully, but these errors were encountered: