So, lately I came across this situation and I’m completely clueless why is it happening and how to deal with it.
Basically, i’m automating a process which interacts with SAP and Excel. Most of the time, it works fine and there is recognition of SAP table cells and other SAP elements.
But sometimes, out of nowhere, the robot simply stops identifying SAP elements, such as all table cells and some text fields and only recognizes top menu SAP buttons. If i try to identify again those elements, UiPath doesn’t recognise them anymore.
My UiPath Enterprise Studio version is: 2016.2.6274 and i’m using Windows 7 Enterprise (64bit).
Have any of you guys had a similar problem? I’d really appreciate some help here!
P.S: I’ve marked Activate Scripting in the Client SAP Configuration. In SAP Server, the sapgui\user_scripting parameter has the “Current Value” set to True.
Sounds to me like the selector may be changing - have you tried using UiExplorer to test different version of the table loading?
Alternatively, click text works very well with SAP as does Full Text screen scraping if you cannot get it to work consistently with the scripting approach.
SAP got upgraded in our system when we started facing inconsistency issue. upgraded from Logon Pad 730 to 740.
if we close SAP clear temp files and test recording is fine. But after multiple testing element gets un recognized.
This is peculiar as it worked fine in Logon Pad 730
I faced the same issue and i was using SAP logon 740…So your upgrade willl not fix the issue. I dont know if this is a UiPath Issue or a SAP issue. Anyway, just put a try catch logic, if the robot does not recognize SAP field or SAP Table, you have to restart SAP Logon. That worked for me!
After the robot logs in SAP Logon, i just put a try catch with a click SAP element in a certain SAP transaction which i know it only works when UiPath is recognizing SAP elements. The catch block catches “Selector not found exception” and then i send a “ALT+F4” key to close the window and then another “ALT+F4” to close SAP Logon. Then i just call my normal workflow. When everything is ok, the robot continues the normal process.
now we are facing issue inspite of deleting temp files also. we tried to restart the system after clearing temp files in SAP. Have raised helpdesk ticket.
when upgrading SAP it is possible for the selectors to change. If a selector fails when executing the workflow you’ll basically have to re-create it using the recorder or UiExplorer
I encountered a case when the scripting setting on the server was not persisted and it was reset to deafult false at server restart. Please check if that’s the case (probably isn’t).
when a selector fails try to use UiExplorer and see if you can select the SAP UI element on the screen.
If not try to use the UI tree in the left and expand it to see if you can access any other SAP objects.
The question is: is only one selector that is not working or nothing is working anymore on SAP.
as far as I understand you guys automate the logon into SAP. I’m not sure but I think I encountered a case when SAP GUI scripting was unavailable on login screen but after logging in everything else worked just fine.
I would not use selectors when automating the logon to SAP. I probably go with keyboard automation and some regular selectors.
Can you confirm that after logging in other selectors work or not?
UiPath uses SAP GUI scripting which is based on COM. As far as I understand it seems that at some point everything stops working. When this happens can you please try to use SAP GUI scripting from VBS to see if it still works?
Here is a script that performs basic checks on SAP GUI scripting: Dropbox - sap-check.js - Simplify your life
The source code contains all the details about how to execute it as comments.
You should run it when SAP automation works and also when it stopped working to see if there are differences in diagnostic messages in the console.
Having the same problem, I am doing a process in SAP and I have a selector and can not change several processes, it is lost as if in SAP the chain is changed to the Selector, the nose and the problem can be fixed but the help