i get this errors every time i runs my vbs and must click on the ok button and refresh the page to solve the problem!
this is my starter code Set objShell6 = CreateObject( "WScript.Shell" ).exec("""C:\Program Files (x86)\Google\Chrome\Application\chrome.exe"" --user-data-dir=""H:\Chrome User Data\Master6"" ""file:///C:\Ui.Vision\ui.vision-master.html?direct=1¯o=mymacro&closeRPA=1&closeBrowser=1&savelog=master-6-log.txt""")
I will explain a little more.
I have two hard drives. One SSD and one HDD
My Windows is on a SSD(drive c) and the profiles are on a HDD(drive h)
and when i move profiles to the drive c (SSD) my problem get solved and when move them to drive h (HDD) i get that erros(sometimes 203 and sometimes 204), whats the problem?
and when i move profiles to the drive c (SSD) my problem get solved and when move them to drive h (HDD) i get that erros(sometimes 203 and sometimes 204), whats the problem?
And all works fine in Firefox (on both drives)? If so, can you please test with Edge as well?
I am not an Enterprise user. I had ssd on the system from the beginning and have not tried it yet. I have to remind you that these errors occur in two ways (in my system)
1- When I run the script for the first time after the system is turned on (next time it runs without any problems)
2- When my HDD is in use (high)
Ahh! Then this is a timeout issue. The ui.vision.html page gets loaded but the browser and RPA extension is not ready in time => the ui.vision.html page can not connect to the extension and thus reports a timeout. These are the #203 and #204 errors.
Workaround: In your CLI script if you start the browser by itself and then pause for 3-10 seconds and then start the macro you wonβt have this issue as well as some others. (batch file example code here)
This error can be easily fixed by you, by adding the Auto Retry feature. When this errors occurs.
And about your solution:
This is my vbscript code snippet. Set objShell6 = CreateObject( "WScript.Shell" ).exec("""C:\Program Files\Mozilla Firefox\firefox.exe"" -no-remote -profile ""H:\firefox profiles\btc-1"" ""file:///C:\Ui.Vision\ui.vision-master.html?direct=1¯o=master&closeRPA=1&closeBrowser=1&savelog=ffmaster.txt""")
How can i add a delay?
Great to hear that! Both parameters are essentially the βautoretryβ feature that you mentioned. Autoretry is already in the code, but the duration was not long enough in your case. You can make both values larger/longer, there should be no negative side effect for you.
The only side effect is that if UIVision is really not installed in the browser, it would take a long time for the error message to show. But this is only a problem for first time UIVision users, which you are not - but that is the reason why we did not make the values too large - that would be confusing for beginners.