INquire how to use Retry Activity

There is a process that takes a long time to download, but I don’t know how long it will take, so I don’t use delay activity

I’m trying to use Retry Activity to wait the process until download is complete.

I created a process using Retry Activities.

BUT…
Retry Activity says that an error occurs before the Download Open/Save pop-up appears.
The error is that the selector was not found.

All I want is to keep repeating and waiting before the pop-up appears.
I learned that this is possible with Retry activity.

Please let me know how to solve it.

The pictures of the process are shown below.


오류2

@sssim4567

If it is for download why not use wait for download activity?

It would wait till the timeout or till the file is downloaded completely

Cheers

1 Like

Thank you for your answer

I inherited the UI-PATH computer and I’m using it
I don’t know where the past user designated the download folder.
He set up a special download path.

And it’s downloaded on ORACLE (ERP-PROGRAM), so I click the button in the Download-Open/Save-pop-up window of the Internet Explorer window.
Then I have to designate a different path and save it.

I didn’t say it in the text
I have to wait not only for download but also for data loading before downloading.

Data loading is the same as the text, I don’t know how long it will take
I have to wait the same way to load the data.

So, the process after the download or loading operation needs to wait for the operation without errors until the download or loading is complete.
I don’t think Delay Activity can be used because I don’t know when that loading/downloading operation will be finished.

So I think we should use Retry Activity or Try Catch Activity
The person in charge of Ui-path in the past seems to have used that process

I want to use it, but there’s an error, so that’s the problem.

@sssim4567

You still dont need wait for download instead use a bigger timeout on the activity which clicks on download or which types into download…so if not found will wait till timeout else will click immediately if found

Cheers

So what you’re saying is we need to increase the time of activity timeout?

It’s a relief if the problem is resolved with that setting
All I know is the time limit of the activity’s attributes
It’s shortening activity time
I don’t know how to increase the time of the timeout.

I would appreciate it if you could tell me how to set it up.

First of all, the problem now is that the download/loading time is longer than the time the activity fails.

Download/loading takes longer with more data
I don’t know how much it will be, but it’s always a lot.

@sssim4567

If you open the properties of the activity you would see a timeout property in which you can give any time…generally it is by default 30 seconds

Cheers

Hey @sssim4567 as per your requirements,

You can follow these step to achieve dynamic delay…

→ Indicate a element in Element Exists activity that appears after file is loaded or downloaded properly like you mentioned the pop-up that appears.

→ A boolean Output of Element Exists activity: bool_DowloadComplete

→ Suppose Variable will be True so it will not go to while as condition is Not bool_DowloadComplete means False, if variable will be false it means file is not downloaded yet, so it will goto while loop and once again checks whether the element appeared or not, activity has Timeout property as 10000 means it will check the element for 10 secs, if element still not appears then again the same… till 20 times as we have given Maxiteration property of While Loop as 20 means approx 3 mins (You can change these values accordingly…)

Hope you got the idea!

Just try it once! (Dynamic Delay)

If your query is resolved just mark the post as solution!
It will help others to find the correct solution.

Activities Screenshot for your reference:

Attaching .xaml for your reference:
Dynamic Delay_Sequence.xaml (9.6 KB)

Regards,
Ajay Mishra

hi @sssim4567 ,

The simplest approach is to use what you already have, but leave the condition blank.
So only a retry scope with the click activity inside.

Optionally, you can also add a “Log Message” activity in the retry scope so you can check back later on the log to see how long it takes to finally complete.

Then you can play around with the retry scope interval and number of retry times to find the best combination. Personally I prefer 5s interval with as many retry times I need (eg. 10).

If you take this approach, I also recommend setting the timeout of the click to something like 5000 milliseconds (by default its 30s or 30000 milliseconds).

This way:

  • the click fails quickly, triggering the retry scope
  • the retry scope checks its interval and retry until either:
    – click is successful, or
    – retry number is reached