cancel
Showing results for 
Search instead for 
Did you mean: 

Error interacting with SAP GUI after kill the process (Cloud Studio)

0 Kudos
225

I have an automation that open SAP GUI, get some info and closes SAP using "ex" transaction.

Then there's another automation that execute the first one multiple times.

The problem is that when one execution of the first automation goes wrong, I use kill process to terminate SAP GUI, and then every execution after that gets error message when trying to interact with SAP.

Error message:

sAPEasyAccess.sAPEasyAccess.maximize: { "retcode": -1, "error": "Error: exec_Maximize -> Object reference not set to an instance of an object. [error UIA00081]." }

View Entire Topic
alexisgaillot
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Gabriel,

This issue is happening when you got multiple instances of the same application.

Can you check if it is the case ?

To do that do the following process :

  1. Do manually what the bot should do (step by step)
  2. When you get the proper situation where you need to use the kill process activity
  3. Open the SAP GUI "test application" by clicking on it
  4. You will see all your application, see if there is multiple instances of this page sAPEasyAccess.sAPEasyAccess.
  5. If it is the case you have to make sure to have only one in the future

Multi instances management in the Cloud Studio is not possible yet and should be available at the end of the year.

In order to get only one instance you have multiple solutions

  • Change the application or page criteria in order to get only one instance
  • If it's due to the process you have by opening multiple times the app then please change your process to only have one application opened at a time.

Best Regards,

Alexis