How to resolve the System.Exception obtained while downloading package file above certain size, using HTTP Request activity ?
Error Message:
" Reading-JArray-from-JsonReader-Path-line-0-position-0 "
Root Cause:
The "maxReceivedMessageSize" value of WCF that is not able to accommodate the response.
Resolution:
For versions less than 2020.4:
Follow the below steps to solve the System.Exception:
- Go to "C:\Program Files (x86)\UiPath\Studio" location
- Search for "UiPath.Service.Host.exe.config" file. Take a back up of the file
- Open the file and search for "maxReceivedMessageSize". Change the value to "2147483647".
- Restart the UiPath Robot service and then run the workflow again.
For versions equal to or greater than 2020.4:
Increase the value of the
maxMessageSizeInMegabytes
parameter in the uipath.config
file to a greater value such as 50 MB.