A Task Was Canceled - KB

Error: "A task was canceled". Task was Canceled upon connecting to Orchestrator.

Issue Description:
“A task was canceled” error is thrown if the request times out. It means the Robot thinks it can connect to Orchestrator, but Orchestrator never responds.

Resolution:

  1. Open a browser on the Robot machine and try connecting to Orchestrator. If a browser cannot connect, the Robot will not be able to connect.
  2. "A Task was canceled” is usually caused by proxy. If there is a proxy in place, follow the steps mentioned here: Redirecting Robots Through a Proxy Server.
  • Configure the below file with your proxy details:
%ProgramFiles(x86)%\UiPath\Studio
11.png
Example:
12.png
  • Proxy details should also be configured in the Nuget file present in this location:
C:\Windows\SysWOW64\config\systemprofile\AppData\Roaming\NuGet
13.png
  1. Make sure the Robot key is the same in both the Orchestrator and UiRobot Settings. Check the process from Connecting Robots to Orchestrator.
  2. If the above fails, try reprovisioning the Robot by deleting it from Orchestrator and reprovisioning it.

Note:
The above content is valid until UiPath 2019.10.x; UiPath v20.10 has the proxy.config file, UiPath v21.4 and above have uipath.config file for proxy configuration.

For troubleshooting purposes official documentation can be followed, as mentioned below: