Error in closing application inside function

Answered
0
0

Hey everyone, I have a question. I have a function that opens my application, in process performs some tasks, and then used function for close the application. When I run the function locally, everything finishes successfully, but when it runs unattended, the status in HQ shows an error. Here’s the log I received:

An error occured in step [6b0926b5-cff4-fa1b-d3c1-4c78e9a272af – wait 2 sec] Exception: System.NotSupportedException: Step is not supported
at Robotiq.ScriptExecutor.StepHandlers.StepHandlerCreator.CreateInstanceForChildLoopSteps(Step instance, Option`1 callingStepHandlerInfo, IVariableRepository variableRepository)
at Robotiq.ScriptExecutor.StepHandlers.StepHandlerCreator.CreateForInstance(Step instance, IStepHandlerCreator stepHandlerCreator, Option`1 callingStepHandlerInfo, IVariableRepository variableRepository)
at Robotiq.ScriptExecutor.ConsecutiveStepHandlersCreatorHelper.HandleSteps(IEnumerable`1 steps, IStepHandlerCreator stepHandlerCreator, Boolean startRobotLocaly, Option`1 containerStepHandlerInfo, IVariableRepository variableRepository, Func`2 callerSpecificLogic)
at Robotiq.ScriptExecutor.Workflow.<>c__DisplayClass5_0.<Run>b__0()
at Robotiq.ScriptExecutor.OperationCaller.TrySafe(Action action, Action`1 exceptionAction)

 

I’ve tried adding different steps inside the function to properly close it, but I keep getting the same error. I even added a pause step at the end to make sure there are no errors with the final step.
Has anyone had a similar (or the same) issue? How did you solve it?
Thank you in advance!

  • You must to post comments
Best Answer
0
0

Hello! Use the “Open Windows Process Step” within the process and, within the function, use the same step but leave it disabled (just for reference, as explained here).

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.