Forum Discussion
JeremyC
3 years agoNew Member
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 ...
Anonymous
2 years agoNot 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