Scenario: When a mail comes I need to run UIPath workflow. So wrote a script in outlook to open a bat file when mail comes. It is running fine. But some times the command prompt and UIPath stucks when opening. And during the next run too, it is not running. Please let me know how to avoid this and why this is occurring.
Getting the below Error in the Event Viewer.
{“message”:"StartJob : mscorlib, \n System.AggregateException: One or more errors occurred. —> System.NotSupportedException: Robot already running for user xxxxxxx \r\n at UiPath.Service.Impl.RobotProvider.TryTake(Guid robotKey, UserIdentity identity)\r\n at UiPath.Service.Impl.ExecutionManager.d__10.MoveNext()\r\n— End of stack trace from previous location where exception was thrown —\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at UiPath.Service.Messages.MessageDispatcher.<>c__DisplayClass9_0.<b__0>d.MoveNext()\r\n
====================
If i kill the Command Prompt and UIPath process, it is running fine from the next run.
Steps to reproduce:
Current Behavior:
Expected Behavior:
Studio/Robot/Orchestrator Version:
Last stable behavior:
Last stable version:
OS Version:
Others if Relevant: (workflow, logs, .net version, service pack, etc):