After my code ran for 48 hours I had 4 days where I couldn’t get it to run for more than 10-20 minutes. And that is the same code! I was going nuts. I then tweaked it with a lot of pauses, slowed the execution, etc. - with no joy.
But then I found it was my startup sequence that did it. If I got an error, the error would show again in a few minutes, unless I did this simple sequence. I now do it every time and it’s been several days with my code running 12 hours+. I then stop it manually and restart it with the same below sequence…
- close UI.Vision RDP
- Chrome > Manage extension (right click on UI icon) > disable, then enable
- open UI.Vision RDP
- refresh every tab; return to tab=0
- start macro
it works every time