How to fix any of the following errors thrown by UiPath Activities? "Deserialize JSON: Cannot create and populate list type Newtonsoft.Json.Linq.JToken. Path 'List', line 1, position 102." or "Cannot deserialize the current JSON object (e.g. {"name":"value"}) into type 'Newtonsoft.Json.Linq.JToken' because the type requires a JSON array (e.g. [1,2,3]) to deserialize correctly."
Issue Description:
This issue happens because of a sub-dependency conflict (Newtonsoft.json) between the installed dependency packages.
Resolution:
- Expand the installed activity packages to see their sub-dependencies.
- Identify the ones using Newtonsoft.Json and check their versions.
- If the versions of the Newtonsoft.Json sub-dependency do not match, upgrade or downgrade either of the activity packages so the version of the Newtonsoft.Json sub-dependency matches.