How To retry Database Connection Using Connect activity if RPA is failed to connect in 1st time. I want to retry if connection failed, sometimes our database is slow so need to retry 2 times and then it will connect.
-
In the Action block add the action what ever you want
-
In condition block after connection success use element exists and indicate on screen which gives you Boolean result. So If connection is success it will continue with next activity if it fails it will retry from action block.
-
In the retry scope properties add number of retries and time interval
Thanks for explanation @indra . I am not using any Ui Element for this bot so what should I use as element exist ? I just need to setup condition for connection fails. But bit confuse that the condition is right or no.
@PALKUMARI_PATEL You can use while loop to retry 2 times
Please check the sample workflow below
Example.zip (2.8 KB)
Thanks but it says . Do I need to download any package?
You can have a Try Catch Block , and in Catch block you have Again use “Connect” activity if it fails in the Try Block
Thanks.
I want to retry for 3 times… Can you just give me an idea of flow ?
please check the xaml below,please change the exception in Catch block accordingly.
Hope that helps.
BlankProcess16.zip (2.3 KB)
Thank You. I will try that.
Thank you Suraj . It’s working.
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.