How to handle the try cath exception:No open windows found。

Dear all,
there is an error like below:


The related program is:

Can anyone help solve it?

@jackie.yue

  1. Check use application browser if in options open is given as always or ifnotalreadyopen…
  2. Check if the application is opening with the given location details in use application browser

Basically no window is found for the application you are trying in it

Cheers

Thanks Anil,
The application below will pop up depend on some condition. How to achieve the follow objectives:

  1. if the application pop up, click the “是” button;
    2.if the application didn’t pop up, goto next;
    image

Hi,

Did you try debug mode? If so, for now can you try to turn on ContinueOnException on ribbon menu as the following? It has workflow not stop even if exception occurs.(And try-catch will skip this error as a result)

Regards,

ThanksThanks Yoichi,
There is still a validation error when the “Continue on exception” opened.

HI,

Have you identify which activity this error occur? Is it the above click?

Regards

There is a mark:

Hi,

In this case, probably it’s unnecessary to use CheckAppState because we need to use UseApplicationBeowser activity before CheckAppState, and it will fail if the dialog doesn’t show.
I think perhaps you should use simply Try-Catch as the your first post, I think.

Regards,

Thanks Yoichi,
If the try application didn’t pop up, there will be warning like this:
image

Hi,

Did you surround UseApplication by TryCatch? And also is Open property of UseApplciation set Never?

Regards,

@jackie.yue

Is this pop up coming when you open the application ?

If yea then use parallel activity and add another use application/browser and indicate the pop up and then give click inside it…indicate only pop up and do not give any paths or anything

Cheers

This pop up when an button was clicked. If the customer exited in the system, it will pop up.

Thanks Yoichi,
If the Use application surround the Try Catch, the warning below will pop up:

HI,

Can you share your workflow as file if possible?

Regards,

This is the try catch process:

HI,

Which activity does the error occur? In previous post, you shared it occurs at CheckAppState. Is it same issue?

Regards,

Hi,
the try catch activity. It seems if the window in the try catch activity didn’t pop up, the warning will pop up.
The window in the cath activity only pop up depend on some special condition.
image

Hi,

Do you mean “Runtime execution error” dialog shows even if it’s inside Try section?

As workaround, how about to use classic ElementExists activity in advance (instead of CheckAppState)?
It’s unnecessary to use inside UseApplciation activity.

image
(Please turn on Classic at Filter)

Regards,

Thanks Yoichi.

1 Like

what if the tested element is an different App detected by UiPath?