Forum Discussion
Auto attendant & Call Queue Dashboard - Cannot deserialize the current JSON object
Hi,
I am trying to load the Teams Auto Attendant & Call Queue Historical Reports V3.1.3 project and I am getting this error:
Feedback Type:
Frown (Error)
Error Message:
Cannot deserialize the current JSON object (e.g. {"name":"value"}) into type 'System.Collections.Generic.IReadOnlyDictionary`2[System.String,Microsoft.PowerBI.Packaging.Storage.ConceptualSchemaSettingsStorage]' because the type requires a JSON array (e.g. [1,2,3]) to deserialize correctly.
To fix this error either change the JSON to a JSON array (e.g. [1,2,3]) or change the deserialized type so that it is a normal .NET type (e.g. not a primitive type like integer, not a collection type like an array or List<T>) that can be deserialized from a JSON object. JsonObjectAttribute can also be added to the type to force it to deserialize from a JSON object.
Path 'conceptualSchemaSettings', line 1, position 45.
2 Replies
- AnonymousNot applicable
Hi JeremyC ,
It seems like you are encountering an error while loading the Teams Auto Attendant and Call Queue Historical Reports V3.1.3 project in Power BI. The error you’re encountering is due to the JSON object you’re trying to deserialize. The error message indicates that the current JSON object cannot be deserialized into the type ‘System.Collections.Generic.IReadOnlyDictionary`2[System.String,Microsoft.PowerBI.Packaging.Storage.ConceptualSchemaSettingsStorage]’ because it requires a JSON array to deserialize correctly.
You can try the follwing things to fix it:
- Change the JSON to a JSON array: If possible, you can modify the JSON data to be an array (e.g., [1,2,3]) instead of an object (e.g., {“name”:“value”}).
- Change the deserialized type: Alter the type you’re trying to deserialize into a normal .NET type that can be deserialized from a JSON object. This could be a primitive type like integer or a collection type like an array or List<T>.
- Use JsonObjectAttribute: You can add the JsonObjectAttribute to the type to force it to deserialize from a JSON object.
Best Regards
- JeremyCNew Member
Is this something that eveyone has to do when they open this project? As this is a MS Power BI project, I would expect the JSON issue to either arise for all users, or that there is a setting on my system that is causing the issue. Has anyone else encountered this issue on this project?