Hello there, i faced the SAP Logon issue by building a new bot. I know the issue occures because our login by SAP is done automatically via PKI card thats why the activity “SAP Logon” doesnt recieve a return for the login window. I tried to catch this issue with a try catch block but i doesnt figured out which kind of exception it is.
Can everyone tell me which kind of Exception it is or another approach how to implement this case.
It seems that you have trouble getting an answer to your question in the first 24 hours.
Let us give you a few hints and helpful links.
First, make sure you browsed through our Forum FAQ Beginner’s Guide. It will teach you what should be included in your topic.
You can check out some of our resources directly, see below:
Always search first. It is the best way to quickly find your answer. Check out the icon for that.
Clicking the options button will let you set more specific topic search filters, i.e. only the ones with a solution.
Topic that contains most common solutions with example project files can be found here.
Read our official documentation where you can find a lot of information and instructions about each of our products:
Meet us and our users on our Community Slack and ask your question there.
Hopefully this will let you easily find the solution/information you need. Once you have it, we would be happy if you could share your findings here and mark it as a solution. This will help other users find it in the future.
Thank you for helping us build our UiPath Community!
Hi @rfranko
I notice in your screenshot that NumberOfRetries is set to 1. Any reason for this?
Can you please leave the default value and let us know if it is still happening?
yes the SAP Logon activity is resposible for opening an SAP connection. My proble is that te activity get no return value which tells it that the connection is open. What the bot does in this use case is it tries to open the connection five times cause the default value for “NumberOfRetries” is five. It stop the process and throws me after ther five tries the “Log event Returned login window is null” . But there is still a open connection.
i only want to open the SAP GUI to execute some transactions in SAP. The first step for this is to connect to the corresponding SAP Server. I realized this steps in our development SAP system without any errors. Now i tried it on the test System and the error occurs. The point is that the activity works, the SAP GUI want open and still i get this error message and the bot interrupts the running flow. I think the problem is corelated to the SAP GUI skripting. I figure out this issue with our IT department and want report to you if it doesnt work.
Have you enabled SAP scripting everywhere? When it returned null for me that was the issue (there are 3 places where you need to enable it: 1. User level setting 2. User access right level 3. Server level).
Open a UiExplorer and check if the selectors cointain <sap id-s or wnd-s. If they are wnd-s, then I think the issue is going to be with scripting access.