Unattended bot will not fail due to timeout

Hi All!

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?

HI @s3vn

What about this solution

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

Best regards, Lev


That’s interesting, so the workflow runs as a separate UiPath bot process on the machine?

I believe the bot process itself spawns some executor process. And this checkbox makes the workflow run in a separate executor process

1 Like

Hi @LevKushnir!

This change seems to be working, do you think the original issue could be a bug?



Happy that provided solution solve your troubles.

Please see also the thread below, where we are discussing reasons what is happing, when “SAP is hanging”:

The original issues sounds like not a bug from this point of view

Best regards, Lev

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.