Using HTTP Request Activity While Downloading Package File Above Certain Size, System.Exception Obtained

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.


For versions less than 2020.4:

Follow the below steps to solve the System.Exception:

  1. Go to "C:\Program Files (x86)\UiPath\Studio" location
  2. Search for "UiPath.Service.Host.exe.config" file. Take a back up of the file
  3. Open the file and search for "maxReceivedMessageSize". Change the value to "2147483647".


  1. 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.