I am automating a process in SAP application. In some cases, the SAP application hangs and the BOT just gets stuck in that step. The Transaction item is “In Progress” state for 19 hours when the entire process should only take 1 minute per transaction. We searched the forum and found that we could use the “Timeout” property in the “Invoke Workflow File” activity for 3 minutes, but that is not working. Does anyone have any other suggestions?
I want any transaction to run only for a maximum of 3 minutes. If the transaction if still “In Progress” after 3 minutes, the BOT should move on to the next transaction.
We have 127 click activities in the process. In many cases, the element is an underlay and the element is always available. So element exists does not always give the expected result. We have tried the common approaches and none of them worked.
Yes Ashwin, We have tried that, but that too does not end the transaction.
We need a way to kill a transaction and move to the next transaction in the queue if a particular time has elapsed.
You can use “Try catch” activity
In “Try” section - place “Invoke workflow file” linked with your sequence in file
In “Catches” section - select exceptions
In “Finally” - “kill process”
@Yhtravarkkhc_Nagej Even I am facing the same issue where bot is getting stuck whenever SAP is getting stuck. It is not raising system exception. Were you able to resolve this issue ?
If any activity fails it should throw an exception, gets caught in the Process State as a SystemException and the Queue Item in Orchestrator gets marked as Failed with an Application Exception in the SetTransactionStatus workflow. You can even add details of the exception to the transaction.
Then, in the framework you should close the application and retry opening the application and continue processing transactions. You can even set the Orchestrator Queue to retry transaction items.
Hello Mayank,
please take a look at this thread, here you can find the solution to wait a definite time or infinity to the end of an SAP action. As an asynchronous task this should also allow to terminate the SAP GUI for Windows.
Best regards
Stefan