Automation works in studio but not through orchestrator dev

Hi all,

I have built out and automation (that I will say uses a lot of Ui navigation in it on wesbites) in Studio. Deployed it to orchestrator thru azure and now im trying to test in Orchestrator.

The automation runs flawlessly from Studio, but it does not work well running unattended from Orchestratr. Common logging errors seems to be with Ui navigation issues and attachment downloads (I’m trying to use temp folders/downloads so the service account bot can access, but doesn’t seem to work).

Any suggestions?
Thanks.

@ryan.boersma,

Have you hardcoded the username inside file paths?
Replace hardcoded username with code - system.Environment.UserName

What’s the error you are getting?

Using this to monitor downloads file: System.IO.Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), “Downloads”).

I have a whole bunch of errors from target strict selector error to ‘System or Application Exception Error Could not find the user-interface (UI) element for this action’. I noticed it also stalls like I mentioend when trying to grab the pdf download.

@ryan.boersma,

Enable the job recording and live stream from the orchestrator to see what exactly bot is doing to understand the issue.

One more possible reason I see, check if your unattended bot is installed in Service mode. - https://www.youtube.com/watch?v=wZiAw5vZTPA&pp=0gcJCfwAo7VqN5tD

Hi @ryan.boersma

is it possible to login to the machine you are trying to run this automation on from orchestrator?

if yes, please try that and watch it in action to observer.

Also, could you please confirm:

  1. if downloads fails everytime or just few instances bot is not able to do so?
  2. Also, ui elements that fails are those the same always? that can help you identify if any popup or something else is blocking certain part of functionality?

@ashokkarale I need to reach out to IT to let me enable this, but its a good idea thank you.

@sonaliaggarwal47 I dont believe so since it is on a company orchestrator server made by IT.

  1. It has been failing every time, but I am going to continue testing it.
  2. Same ones failing. There should be no pop ups on the speicifc websites i am using. Any suggestions how to fix?

Hi @ryan.boersma

No, you dont need to login to orchestrator server.

I am asking to login to the machine/VM where you are trying to run your unattended automation on?

You can even try to run on your machine from orchestrator and watch it in action if you have the right license.

I am currently selecting for the unattended process to run on a different machine. I do not have access to this machine.
However, I do think I know whats going wrong. Many of the webs im using require a one-time sign in confirmation which is interfering with the Ui.

1 Like

Hi @ryan.boersma

Yup you got it, that must be it.

You can try use robot username and password that you are using to run unattended automation to remote login to the machine and handle the same?

Or if you can handle the same via your automation.

@ryan.boersma

Try to have screenshot when exception occurs to see the state of the current ui ..that can help

Cheers