So i’m stuck in a part where I don’t even imagine what to do. The thing is, that I have written a UI that scrappes data with given url’s from web page, pastes the info to an excel file and goes on with 5k+ urls. My main problem now is that my ui is connected with a ip changer, which changes the ip from time to time. When he changes the ip, there is a time where there is no internet, and then the ui crashes. Is there a way for me to indicate that the internet is down for a moment, the ui stops his activities until the internet comes back up and he proceeds to do what he is told to?
Here is the outline of the UI:
Hello @Povilas_Jonikas
Try this “System.Net.NetworkInformation.NetworkInterface.GetIsNetworkAvailable()"
If no network it shows false and net-connected it shows “true”.
If the condition is False do activity in the loop if its true process will continue.
use Flow decision and enter this conditionSystem.Net.NetworkInformation.NetworkInterface.GetIsNetworkAvailable()
Thanks a lot for the response, and in advance I’m sorry to bother you, but is there a chance that you could show to me how it’s done? It’s to complicated for me if im being honest and I don’t have a clue how to do it. Is it possible for you to somehow sketch the steps out on the outline of my ui photo that I have attached in this thread or even give me a live example outline of the procces?
Thanks Gokul for the responses, I appreciate it a lot.
I think I designed the flowchart with you’r help, but not when it comes to it, the ui just stops running. I dont know whats wrong, no errpor, nothing, just ended. This thing is a bit to confusing for me, but I want to learn extremely hard.
What the outline looks like now:
Inside of the flowchart:
The thing is, that I dont know where to put the flowchart. I’ll attach the uipath file that im writing right now, maybe it will help you help me better. Universalus scrapperis gatovas.xaml (30.9 KB)
I tried doing it by the thread you attached, but I just cant figure out where to put the things needed. If ill put the activity that a guy there attached that is the solution, will it loop for every code?
@Povilas_Jonikas Please Use the FlowChart Before Open browser, If Internet available then process will start from open browser, otherwise the process will on loop
@Povilas_Jonikas , if you found the solution for the internet issue, then mark my answer as a solution and create a new Question. It will help someone have the same issues. So kindly open a new question Topic.
You see, when I start the ui, when he goes to the flowchart, he stops, even tho I have internet. It just stops proceeding and doesn’t show no errors. Ill attach some screenshots of the flowchart, maybe you’ll find something thats wrong. I can even attatch the file of the ui.
In the flow decision condition i’ve inserted this code “System.Net.NetworkInformation.NetworkInterface.GetIsNetworkAvailable()”
In log message:
The whole flowchart is in “for each row in data table”, because the continue button in flowchart needs to be in some kind of a loop. When I start the ui, it gets stuck on the flowchart and just does nothing, even tho I have internet connection
This is the UI that im working and struggling with: uni padarytas per loptop.xaml (20.0 KB)
So I’ve checked, and now I get the point. The thing is, that my internet can turn off at any time, so it wont always work. But I’ve put a retry scope activity in the place where the ui uses internet and it does it’s job, but im still not satisfied, because it takes longer time to process.