Error: No Tab for playing commands yet

Below test case run successfully at UI vision rpa version 6.2.8 but fail at 6.3.2

Status=Error: Error #150: No tab for playing commands yet

[status] Playing macro GIH_Morning_HealthCheck/IMAGERY
[info] Executing: | open | https://geoportal.landsd.hksarg/geoportal/papp1/core/rgih/view/info | |
[info] Executing: | store | false | isErrorScreenShotCaptured |
[info] Executing: | selectWindow | TAB=CLOSEALLOTHER | |
[info] Executing: | deleteAllCookies | | |
[info] Executing: | selectWindow | TAB=close | |
[info] Executing: | open | https://geoportal.landsd.hksarg/geoportal/papp1/core/rgih/view/auth/smoad | |
[error] Error #150: No tab for playing commands yet

So the first open works, but the second open fails? Can you post a video of the issue?

Ignore what I asked, I recreated the issue. It works in 6.2.8 but in 6.3.2 I get:

Cannot read properties of undefined (reading ‘toPlay’)

{
  "Name": "test2",
  "CreationDate": "2022-1-6",
  "Commands": [
    {
      "Command": "open",
      "Target": "https://ocr.space",
      "Value": "",
      "Description": ""
    },
    {
      "Command": "selectWindow",
      "Target": "TAB=CLOSEALLOTHER",
      "Value": "",
      "Description": ""
    },
    {
      "Command": "deleteAllCookies",
      "Target": "",
      "Value": "",
      "Description": ""
    },
    {
      "Command": "selectWindow",
      "Target": "TAB=CLOSE",
      "Value": "",
      "Description": ""
    },
    {
      "Command": "open",
      "Target": "https://ocr.space",
      "Value": "",
      "Description": ""
    },
    {
      "Command": "",
      "Target": "",
      "Value": "",
      "Description": ""
    }
  ]
}

Thanks for the error report!

Hi @admin, after upgrading to latest version 6.3.3, the error “No tab for playing commands yet” still exist

Yes, this issue is not fixed. We still have a hard time recreating it on any of our machines :frowning:

So if you or anyone else has a good test case*, please let us know,

*Or any idea of what might be different on your machine.

Here is the case for you:

{
  "Name": "test2",
  "CreationDate": "2022-1-6",
  "Commands": [
    {
      "Command": "open",
      "Target": "https://ocr.space",
      "Value": "",
      "Description": ""
    },
    {
      "Command": "selectWindow",
      "Target": "TAB=CLOSEALLOTHER",
      "Value": "",
      "Description": ""
    },
    {
      "Command": "deleteAllCookies",
      "Target": "",
      "Value": "",
      "Description": ""
    },
    {
      "Command": "selectWindow",
      "Target": "TAB=CLOSE",
      "Value": "",
      "Description": ""
    },
    {
      "Command": "open",
      "Target": "https://ocr.space",
      "Value": "",
      "Description": ""
    },
    {
      "Command": "",
      "Target": "",
      "Value": "",
      "Description": ""
    }
  ]
}

Thanks for the macro. I also get: “Error #150: No tab for playing commands yet”. We will try to fix this asap.

Hi admin, the issue still exist in 7.0.14 version, i test with chrome which has only one tab , after executing [select window | TAB=CLOSEALLOTHER], the tab is closed and there is no other tab opening and then [select window | TAB=CLOSE] will fail. But for my knowledge, [select window | TAB=CLOSEALLOTHER] closes all open tabs except the current one, right?

{
  "Name": "testdeletecookies",
  "CreationDate": "2022-6-28",
  "Commands": [
    {
      "Command": "open",
      "Target": "https://ocr.space",
      "Value": "",
      "Description": ""
    },
    {
      "Command": "selectWindow",
      "Target": "TAB=CLOSEALLOTHER",
      "Value": "",
      "Description": ""
    },
    {
      "Command": "deleteAllCookies",
      "Target": "",
      "Value": "",
      "Description": ""
    },
    {
      "Command": "selectWindow",
      "Target": "TAB=CLOSE",
      "Value": "",
      "Description": ""
    },
    {
      "Command": "open",
      "Target": "https://ocr.space",
      "Value": "",
      "Description": ""
    },
    {
      "Command": "",
      "Target": "",
      "Value": "",
      "Description": ""
    }
  ]
}

@shingho153 Thanks, nice test case!

Hi admin, pls advise when will the bug be fixed?

Over the next weeks, I guess. There are still a few issues with higher prio in our queue.

PS: If you own an RPA Enterprise license please contact tech support directly, and we can raise the priority further.

hi admin, may i have the contact for tech support

Hi, coming back to this issue. Why do actually want to close the last open tab in this macro? Or is this just done to demo the #180 problem?

I mean this command:

“Command”: “selectWindow”,
“Target”: “TAB=CLOSE”,

I assume this hasn’t been fixed in 8.0.1? I get "Tab: Error: No Tab for playing commands yet in the command line (I only just saw the URL, that should go in the LOG where it only says “[error]; No tab with id: 212501803”. This is every time I tried it except once. I am invoking it via a url such as “file:///D:/DBAREIS/TOOLS/UI.VISION/ui.vision.html?storage=xfile&direct=1&macro=RegistryAu(VIC).json&cmd_var1=AdcockDudley%20Alwin19201922B”

I don’t know when this might have started as it has been a fair few months since I last used UIVISION.

from a local HTML file. As it previously had a lot of issues starting a new page in the script as reported and not fixed, I am close to giving up on UIVISION.

@dbareis The challenge is that we need a test case to recreate and debug the issue. But we are working on it, changing and fixing things step by step.

@admin There is no need for a test case given the before code and after code is the same, that means either your last update causes this problem or its an environmental issue. If I was looking into it I’d be running programs that flog cpu and memory and dial it up until it breaks. Someone mentioned timing, I suspect that is the case as the few times my script actually starts at all it always seems to fail with one timeout or another.

We need a test case to recreate the issue here. I also think it is a bug in the software, but we need to be able to recreate here in our test system to debug and fix it.