I was doing some tests with RPA command line and suddendIy a pop-up appeared in my Firefox browser when Firefox and RPA launched. And the Macro didn’t start :
I have browsed the forum and I found that some users have encountred the problem but with no solution.
I don’t know if there is something to do with memory (that’s what the other threads suggested). When it happened I had 50% memory left, but indeed firefox and RPA were slow to open at this time. After closing the browser everything came fine.
I manage the problem this way (but it didn’t happen again so far). My first lines in my macros are : I “csvSave” a file (ok.csv) an I do a “LocalStorageExport”. My command line is called by a program which test in a loop if the ok.csv exists. If not after let’s say 30 seconds, it kills Firefox and start again the macro, and there is a loop as well with a tempo. With this code, I assume that it is a temporary problem.
But do you have more information about this problem or a better solution ?
This error shows up if UIVision inside the browser is not ready in time for the command line. So it has nothing to do with the macro, it happens before UIVision IDE even opens. As you observed, it happens mostly if the browser is really slow - but actually it should not happen at all. It clearly is a bug.
Hey Admin, I am also facing the same issue not every time but yes it is occurring twice or thrice a week. I have scheduled around 30+ bots and I usually get this issue twice/thrice a week for 3-4 bots only. Can you please suggest the workaround to resolve this issue.
FYI in your CLI script if you start the browser by itself and then pause for 10-15 seconds and then start the marco you won’t have this issue as well as some others.
To understand your workaround (since I had also the problem).
You start the browser from an external script (VB, other), THEN pause in this external script 10-15 seconds, and THEN start the ui.vision RPA command line from this script ? or is it something else ?
Unfortunately it does not work for me. Maybe I do it wrong.
But my test could help the developers to check if this error case is a normal behavior (it seems to happen every time).
What I do is : I wrote a windows batch file with 3 lines :
REM Launch firefox
“C:\Program Files (x86)\Mozilla Firefox\firefox.exe”
REM Pause 15 sec
timeout 15 > NUL
REM command line
“C:\Program Files (x86)\Mozilla Firefox\firefox.exe” “file:///C:/tmp/ui.vision.html?macro=pourtest-1&closeRPA=1&closeBrowser=1&direct=1&storage=xfile&savelog=log-20210519.txt”
When I run my bt file, the result is : it opens firefox with one tab (my home is : https://api.ipify.org/)
Then it waits 15 sec.
Then it opens a second tab with “Starting browser…” and ui.vision RPA
Apparently closing the 2nd tab, since the ui.vision RPA ends on an [error] Invalid tab ID: 2 each time.