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.
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.
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.