We are using killProcess activity to kill the application which is opened but it’s closing for all users A, B, C instead of one user A. We have used “Applies to” is “OnlyCurrentUser” in property.
The Process was working fine in legacy orchestrator. We are facing this issue after we moved to cloud orchestrator.
We are using same version for other process as well but this process alone creating issue. Even we checked in different machine the same process but still we are getting same issue.
Is the Robot user has admin user role in the server?
If so, Change the user from “Administrators” group to “Users” group or any other appropriate group that has the necessary permissions but not admin-level permissions.
Yes, all users are running at the same time. We have checked by seeing the logs. Even we tried running users at different time but once chrome opened in another user, it’s closed in already running user.
Could you please enable below logic around your kill process.
Get the current user name by Environment.UserName .
Add check in the if-condition that processName=“YourProcessName” AND UserName= Environment.UserName, only then kill process.
This way it can be ensured that process is killed for only logged in user.
You can also use log activity here to print processName and UserName, this will help you in troubleshooting as well as to why the kill is happening for every user.
Hi @sandhiyakp15 , would you able to tell us which application?
Does the application run in userland or is there an underlying service that is run as a common user? You can check the Windows task manager to find out the username that is running the application.
If you manually kill the application from task manager, does it behave as expected?
I’m guessing you use the “Use Application/Browser” to initiate a Chrome session? If that’s the case go to the properties and select “If Opened by Application/Browser” under the “Close” property.
It may be worthwhile to debug the code to see the control flow. You would be able to understand at exactly which point it is failing. If you are using re-framework, there is a good chance that initialisation state is throwing system exception leading the control to go to end process where it will go to close applications so even if chrome was opened but some system exception came right afterwards it will get closed automatically.