A task was canceled - KB

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

Root cause & Troubleshoot approach
 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.
1. As a first step, 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” it’s usually because of proxy. If there is a proxy in place, follow the steps mentioned
here .
   

      Configure the below file with your proxy details. 

%ProgramFiles(x86)%\UiPath\Studio


undefined




 Example :- 


undefined





   Proxy details should also be configured  in the nuget file present in  Location: C:\Windows\SysWOW64\config\systemprofile\AppData\Roaming\NuGet


undefined





3. Make sure the robot key is the same in both the Orchestrator and UiRobot Settings.

Check the process from here 

4.  Implement this if above fails, Try re-provisioning your Robot by deleting it from Orchestrator and Re provisioning it.