cancel
Showing results for 
Search instead for 
Did you mean: 

Hi After certain number in the table counter, the path counter is not working in blue prism

Miya
Level 5
Hi, 
  I am using browser mode in BP6.8, when i use the path counter for table
/HTML[1]/BODY[1]/DIV[1]/DIV[1]/DIV[1]/DIV[1]/DIV[1]/DIV[2]/DIV[1]/DIV[1]/DIV[2]/DIV[4]/DIV[1]/DIV[1]/DIV[2]/DIV[1]/DIV[1]/DIV[2]/DIV[2]/DIV[1]/DIV[1]/DIV[1]/DIV[2]/DIV[2]/DIV[1]/DIV[2]/TABLE["&[Campaign Name Counter]&"]/TBODY[1]/TR[1]/TD[1]/DIV[1]/SPAN[1]

after 48 the counter is giving error saying "no element matched the query terms.

Can some one help to sort this issue

------------------------------
Miya
------------------------------
4 REPLIES 4

Hi Miya,

From the error message it looks like the path generated for 48 does not existing in the web application that you are interacting with. Have you checked the HTML of the web app to check if the path exists? Or if it's a dynamic table you could use a recover stage to continue the execution for the next steps when you encounter this exception.

------------------------------
Shashank Kumar
DX Integrations Partner Consultant
Blue Prism
Singapore
+6581326707
------------------------------

Hi ,
  Thank You for the reply. Actually HTML mode is not working for this particular webpage ,yes it is dynamic table. i tried the recover stage but after 48 it doesn't work it has to go till 200.
  The issue i notices was when the item is below the screen level the counter is not working, might be i need to use page down. Can some one suggest how can i use page down or scroll down so that bot can continuously pick the item from the exceptioned out part.

20042.png

------------------------------
Miya
------------------------------

You can do one thing here, whenever you that error, you can first check the value of prior value data item (This data item we can create to store the first element value for the prior screen) In case this is the first screen of your run, this value would be null so if the value is null (First Run) simply assign the prior value data item as the first element value of the current screen using read stage and then click on the first element and then try to press down button in a loop for (48 times*2) and the via Resume stage come back to the main flow. In you main flow if you are able to get that item proceed with the happy path.

Now again in you flow if you get the same error you can again check if the prior value is null, this time it won't be as first screen had some value so now check if the value of the first element of the current screen is equal to the first element value of the current screen. If they are not means you navigated properly to the next screen and now again you can fetch the first element value of current screen and store it as a prior value data item and then repeat the same process of clicking on down button in a loop and after Resume stage come to you main flow.

If the value of the first element of the current screen would have been equal to the first element value of the current screen it means that you are at the same page as no more values are available that's why top elements are matching, so now you can simply process your flow to go ahead or throw an exception saying that you didn't get any matching items.

------------------------------
----------------------------------
Hope it helps you and if it resolves you query please mark it as the best answer so that others having the same problem can track the answer easily

Regards,
Devneet Mohanty
Intelligent Automation Consultant
Blueprism 6x Certified Professional
Website: https://devneet.github.io/
Email: devneetmohanty07@gmail.com

----------------------------------
------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
Hope this helps you out and if so, please mark the current thread as the 'Answer', so others can refer to the same for reference in future.
Regards,
Devneet Mohanty,
SS&C Blueprism Community MVP 2024,
Automation Architect,
Wonderbotz India Pvt. Ltd.

John__Carter
Staff
Staff
Hi Miya - the error is telling you that after 48 iterations the path is no longer valid. There must be something different about the 48th table - it probably has a dfferent path to the one you are constructing with your counter.

------------------------------
John Carter
Professional Services
Blue Prism
------------------------------