cancel
Showing results for 
Search instead for 
Did you mean: 

BOT gets stuck on a Navigation stage (Keep running)

Akhlesh_KumarJi
Level 4
I am doing SAP Automation. Please refer attached item before going below. BOT identifies window with name "Batch number" (Pop-up 1) and perform click action on "Continue" button. Another pop-up appears i.e. "SAP GUI Security" (Pop-up 2). Now BOT needs to identify pop 2 (highlighted in red) and make decision i.e. Allow/Deny according to Business rule. However, BOT keeps on trying to complete Step 1 i.e. gets stuck on Navigation stage to complete click action on "Continue" button. Since BOT has not completed click action on "Continue" button BOT is not moving to next stage. I have spied pop 2 and put check exist for pop 2 in Object after Navigation stage (Continue click). But BOT is on Navigation stage only and not going to check exist. I tried different Application Modeller mode like 32/64 bit external and used "Provide the time that the Object will wait for application to respond before throwing an Exception" attribute. By using this BOT is able to move to next stage from Navigation stage (Click action on "Continue") and throws Exception i.e. "Application is unresponsive". But this exception destroys current BOT session on that application. Please suggest some way to sort out this issue. Thanks in advance.
2 REPLIES 2

John__Carter
Staff
Staff
It sounds like the call to press the Continue button is not completed (and the business object waits) until pop-up 2 is closed. But because it is waiting for a response, the object cannot proceed to handle pop-up 2. Try experimenting with other ways to click Continue, for example sending a global mouse click to the main window, at the coordinates of the button. Maybe the response from a mouse click will not be blocked.

IanGrant
Level 3
I agree with, John. BP interaction with SAP seems to be heavily dependent on SAP's native GUI API which has these types of quirks quite often. While not a solution to that overall issue, you can solve this specific issue by changing the user end settings on the SAP side. You should disable these automation warnings in SAP's Options>Accessibility & Scripting> Scripting by unchecking the ""Notify when a script: boxes. While you're in options you can also customize the Security Settings to give your version of SAP more write access to your drives. This will also minimalize the amount of housekeeping you need to build into your objects.