System.Threading.Tasks.TaskCanceledException: A task was canceled

Hi All,

While using the Parallel Processing activity Getting below error,

Error:-

System.InvalidOperationException: The activity ‘Invoke Workflow File’ with ID 677 threw or propagated an exception while being canceled. —> System.InvalidOperationException: The activity ‘Get Outlook Mail Messages’ with ID 1309 threw or propagated an exception while being canceled. —> System.AggregateException: One or more errors occurred. —> System.Threading.Tasks.TaskCanceledException: A task was canceled.

I’m trying to run 2 flows by using Parallel activity with 2 different task one is doing some UI work like filling Form on website & second is reading mail by using Outlook desktop application. While running this this both parallelly getting above error.

Hi @justsurya800

“When trying to run the project, I receive the following error: System.AggregateException: One or more errors occurred.

Solution

The problem is that UiPath.Service.Host process (the robot) was not restarted at all after the upgrade.
This can be done by killing the process in task scheduler, restarting the robot tray or logging out/logging in to your windows account.

Ref:- V2018.3 UiPath Community Edition - Troubleshooting Guide - Help - UiPath Community Forum

Hope this helps :slight_smile:

@justsurya800

As per error your send outlook is failing…may be some prameters is wrong or missing

Cheers