Extract DataTable not working on internal chrome tab

Hey Community,

I am using the Extract DataTable activity in UiPath Studio. In my scenario, I click on a link, and a new tab opens.

I closed the previous tab of chrome and did some required clicks on the new tabs it’s working fine. But when I want to scrape the table in the new tab it returns the length 0 which means it’s not extracting the table.

The strange thing is when I use test extraction at that time it’s working 100% (Always) but when I run the script it’s not extracting/

Any help will be highly appreciated.

Best regards,
Muhammad Anas.

Hi @Muhammad_Anas_Baloch

Fallow the steps below. If I helped you, please mark it as solved.

This issue may be related to the page loading or the lack of focus on the correct tab during runtime.

Step 1
Check for Full Page Load: Use the Element Exists or On Element Appear activity to ensure that the table or a specific element on the page is fully loaded before attempting to extract.

Step 2
Activate the Correct Tab: Before using Extract DataTable, use the Activate activity in the new browser tab to ensure that the focus is on the correct tab.

Step 3
Use Delay if Necessary: ​​If the issue persists, add a Delay to ensure that everything is properly loaded.

Step 4
Adjust Selection: Sometimes the selection in Extract DataTable can be ambiguous. Make sure the selector is specific to the new tab.

1 Like

You can try by adding some delay before extract activity
Than check the other setting where page load is set to compete
Also
While extracting you can see preview of data
@Muhammad_Anas_Baloch is it showing value in preview table ?

Also while extracting try changing ui framework and see in the preview how each framework is reading data .

Also keep the UiPath ui activity package to second or third latest version !
Sometime the most latest version have issue… hence better to use previous versions

Try to keep the same version for system activities and ui activity

@Muhammad_Anas_Baloch thanks !

1 Like

@Muhammad_Anas_Baloch

check the selector

check if the wait for load complete is used

check if the page is still loading while it is trying to extract

cheers

1 Like

Thanks, @Erimateia, @jast1631, @Anil_G.

I tried the methods you mentioned but had no luck, unfortunately.

Hello

Additional comment - Check on the Extract activity that ‘ContinueOnError’ is disabled. That way it fails and you can get the error message.

Cheers

Steve

1 Like

If you can share the flow or screen shot ?

1 Like

@Muhammad_Anas_Baloch

Please provide more info

Cheers

1 Like

@jast1631 @Anil_G , I am trying to attach the new tab and closing the previously opened tab.

@Muhammad_Anas_Baloch

  1. Is the table still loading whole trying to extract?
  2. Can you check the continue error property of it
  3. Did you refine the selectpr to not contain table specific data

Cheers

Is it possible to use modern use application activity ?
Is there sufficient delay between two steps in this ?
Also if u can share property of extract data table