System.InvalidOperationException

RemoteException wrapping System.InvalidOperationException: The activity ‘Invoke Database_SetStatus workflow’ with ID 45 threw or propagated an exception while being canceled. —> RemoteException wrapping System.InvalidOperationException: The activity ‘Invoke Database_DBConnect workflow’ with ID 3 threw or propagated an exception while being canceled. —> RemoteException wrapping System.InvalidOperationException: The activity ‘Connect to database’ with ID 3 threw or propagated an exception while being canceled. —> RemoteException wrapping System.AggregateException: One or more errors occurred. —> RemoteException wrapping System.Threading.Tasks.TaskCanceledException: A task was canceled.

--- End of inner exception stack trace ---

at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task1.GetResultCore(Boolean waitCompletionNotification) at System.Threading.Tasks.Task1.get_Result()
at UiPath.Database.Activities.AsyncTaskCodeActivity.EndExecute(AsyncCodeActivityContext context, IAsyncResult result)
at System.Activities.AsyncCodeActivity.System.Activities.IAsyncCodeActivity.FinishExecution(AsyncCodeActivityContext context, IAsyncResult result)
at System.Activities.AsyncCodeActivity.CompleteAsyncCodeActivityData.CompleteAsyncCodeActivityWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)
— End of inner exception stack trace —
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at UiPath.Executor.BaseRunner.EndExecute(IAsyncResult result)
at UiPath.Executor.InProcessRunner.EndExecute(IAsyncResult result)
at UiPath.Core.Activities.ExecutorInvokeActivity.EndExecute(AsyncCodeActivityContext context, IAsyncResult result)
at System.Activities.AsyncCodeActivity.System.Activities.IAsyncCodeActivity.FinishExecution(AsyncCodeActivityContext context, IAsyncResult result)
at System.Activities.AsyncCodeActivity.CompleteAsyncCodeActivityData.CompleteAsyncCodeActivityWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)
— End of inner exception stack trace —
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at UiPath.Executor.BaseRunner.EndExecute(IAsyncResult result)
at UiPath.Executor.InProcessRunner.EndExecute(IAsyncResult result)
at UiPath.Core.Activities.ExecutorInvokeActivity.EndExecute(AsyncCodeActivityContext context, IAsyncResult result)
at System.Activities.AsyncCodeActivity.System.Activities.IAsyncCodeActivity.FinishExecution(AsyncCodeActivityContext context, IAsyncResult result)
at System.Activities.AsyncCodeActivity.CompleteAsyncCodeActivityData.CompleteAsyncCodeActivityWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)
— End of inner exception stack trace —

Up here you can see the exception I got. ID is changing sometimes like 1445… Workflow contains sql update query. I was update uiautomation and database packages. But I couldnt solve it. Could you help me?

Merhaba @damla.alltun,

Yapmış olduğunuz işlemleri Try Catch içerisinde mi yapıyorsunuz?

Akışınızın kısa bir görüntüsünü gönderebilir misiniz?

Bu arada bundan sonraki sorularınızı Türkçe sormak isterseniz buradan da paylaşım yapabilirsiniz.

Saygılarımla
Ömer