I have built sap automation process and sometimes the SAP screen freeze and robot freeze as well, so i added timeout in sap process workflow but that timeout never works unless i open the robot machine and kill sap from task manager.
The below link explains about the same issue under Error Handling, but i am not sure how to implement this.
Can someone provide me the solution for this please?
Did we try with this method as per the same document
Therefore, all interactions with SAP should be timeboxed and put in a Parallel activity, that has a delay with the expected running time and an action like closing the SAP process.
Where we can use parallel activity with the sequence of activities you have, which can placed in left side of that activity and another sequence of activities to close SAP, at right side of parallel activity
This will the bot to run asynchronously and perform the task one next to another
Yes, what can I check in parallel, checking element from sap might not work if its freezed, just adding delay in parallel also wont work since my work flow might complete in a sec or it takes 10 min depends on the input.
I want the below workflow “Create PO” to be processed it might take 1 sec to 10min to process based on number of items. Now the freeze happens inside this workflow at any stage. So if i put this inside the parallel activity and in parallel if i put that do while loop will it work? I am not sure at what stage to do element exist since the sap screen will remain same for each queue item.
This works, but since we give 5 sec delay and 50 counter it will take around 4 min(we dont know exactly how long it will take for actual process) to process the parallel activity and to move to next queue item while my actual sequence would have completed even before that so it will be a waste of time right?
That’s the main problem here, one purchase order might have 1 line item and another purchase order might have 100 line items.
And we have huge volume of data to process so we cant waste even a single second.
Isnt there a easy way to find out sap is frozen or not?
Yeah I understand
To standardise the process we need to have ideal time considering all the possibilities
So based on that have the time set
Either it surpass that time or gets picked within that time has to be standardised and mentioned to the users
That’s the main part of process standardisation
So I think it’s fine to have this
If I put a specific flow like create purchase order and it was completed before the timeout for example 2min, will the bot wait for two min to complete and close SAP for every transaction?
Can we just skip the timeout workflow once my flow is completed?
Or we can just give Boolean condition in parallel activity once my work flow is done and set condition to true it will come out of parallel activity.
Thank you very much Jack and Palaniyappan for your help
Well I am facing different issue now, whenever the SAP freeze and timeout is reached in parallel after killing the SAP and throwing system exception, the job is getting faulted instead of moving to next queue item.
Usually when system exception happens we have set to one retry, but retry not happening in this case.