HI Team, Hi Chris (@cconnors), Hi Joe (@s3vn),
With UiAutomation Activity Pack 22.2 we have released a new feature, which we are calling
Enforcing the hard timeout for SAP WinGUI
This parameter/settings/variable will ensure, that SAP activities will be enforced to terminate after a predefined timeout.
Timeout can be set on activity level, here:
Use case 1:
You are in SAP process, performing some activities in SAP and e.g pressing button âshow me reportâ. This activity is taking a long time, as SAP need to collect the data, prepare report, SAP is working.
If âEnforcing the hard timeoutâ is activated, the UiPath Robot will terminate the activity execution and will throw an error after the timeout specified in the activity target.
You can catch and handle this error message in a Try & Catch activity.
Use case 2:
You are in SAP process, performing some activities in SAP, and SAP has a network issue and robot is going to lose the connection to SAP.
If âEnforcing the hard timeoutâ is activated, the UiPath Robot will terminate the activity execution and will throw an error after the timeout specified in the activity target.
You can catch and handle this error message in a Try & Catch activity.
To be able to use Enforcing the hard timeout for SAP WinGUI in Studio
-
Upgrade to UiAutomation Activity Pack 22.2-preview
-
Use Invoke Activity as the FIRST and the TOP activity in your workflow
(THIS IS MUST HAVE. IT MUST BE ACTIVITY NUMBER ONE in your workflow)
-
Add following code:
System.Environment.SetEnvironmentVariable ("UIPATH_SAP_TIMEOUT_ENFORCED", "1")
Please consider this solution as a temporary and as a preview.
With Release 22.4 we are about to improve the UX to simplify the usage.
CALL TO ACTION: We need your support and feedback in trying this out. Please let me know!
Thanks, Lev