I have been having an issue with one of our processes for the past week on all of our workstations (but only with this one process). The process uses SAP and after saving an order SAP is sitting at the transaction screen locked up. I figured that the bot should fail to find the activity (or next activity) after 30 seconds but it will sit there for hours never continuing.
At first I thought the issue was that the activity’s WaitForReady property was set to Interactive. I changed it to NONE and it seemed to fix the issue for half a day, but then it came back again.
Then I tried updating the packages to the newest versions and that seemed to fix the issue for a day, but it came back again.
I also tried changing out the Call Transaction for a Type Into activity, but the issue continued. I am running out of ideas and was hoping someone has seen something like this before?
You can use Invoke Workflow with a timeout while executing it Isolated (it will run in a separate windows process). This timeout value would be the expected maximum workflow execution duration + extra time as buffer.
If sap freezes and the workflow invocation reaches the timeout you would have the exception thrown and you can handle it in your workflow as you desire.
So summary of solution: Invoke Workflow File" with the “Isolated” property checked + Timeout property set