Home > Forum > Known bugs > Error handling in cyclical actions

Error handling in cyclical actions

Hello,
I have a global cyclical action that does some things. And in "Error handling" section i've got an automation that sends a customized email
It was working fine in 2022, stopped working after upgrading it to the newest 2023 version.

Currently it is impossible to do such scenario. I've also tried invoking a REST API but it also fails.
Those automation put somewhere else (not in cyclical actions) work fine.

Message: Błąd wysyłania wiadomości e-mail:
Object reference not set to an instance of an object.

Type: WebCon.WorkFlow.BPS.Abstract.Exceptions.WorkFlowException
Source: WebCon.WorkFlow.BusinessLogic
StackTrace: at WebCon.WorkFlow.BusinessLogic.Automations.Engine.AutomationEngine.<RunAutomationOperationsAsync>d__27.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at WebCon.WorkFlow.BusinessLogic.Automations.Engine.AutomationEngine.<RunAutomationWithoutResultCleanAsync>d__24.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at WebCon.WorkFlow.BusinessLogic.Automations.Engine.Evaluators.AutomationEvaluator.<EvaluateAsync>d__6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at WebCon.WorkFlow.BusinessLogic.Automations.Engine.Interfaces.AutomationEvaluatorAbstract.<ExecuteEvaluationAsync>d__8.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at WebCon.WorkFlow.BusinessLogic.Automations.Engine.AutomationEngine.<RunAutomationOperationsAsync>d__27.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at WebCon.WorkFlow.BusinessLogic.Automations.Engine.AutomationEngine.<RunAutomationWithoutResultCleanAsync>d__24.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at WebCon.WorkFlow.BusinessLogic.Automations.Engine.AutomationEngine.<RunErrorFlowCollectionAsync>d__25.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at WebCon.WorkFlow.BusinessLogic.Automations.Engine.AutomationEngine.<RunAutomationWithoutResultCleanAsync>d__24.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at WebCon.WorkFlow.BusinessLogic.Automations.Engine.AutomationEngine.<RunAutomationAsync>d__30.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at WebCon.WorkFlow.BusinessLogic.Automations.Engine.AutomationCoordinator.<RunRecurrentAsync>d__21.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at WebCon.WorkFlow.Service.Context.ServiceExecuteWithTimeout.<>c__DisplayClass6_0`1.<<ExecuteAsync>g__ExecuteAndCatchInnerExceptionAsync|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at WebCon.WorkFlow.Service.Context.ServiceExecuteWithTimeout.<ExecuteAsync>d__6`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at WebCon.WorkFlow.Service.StartRecurrentAction.Queue.RecurrentActionsManager.<RunAllActionsRecurrentActionsCycleAsync>d__23.MoveNext()

Nobody has replied in this thread yet.