Data scraping isn't getting one row of web table

Hi,

I’m using Studio 2019.11.0-beta.2 - Community Edition - Stable, working on Microsoft Windows 10 Pro 64 bits, .NET Framework Versão 4.6.2

I’m trying to get all rows of a table with 250 rows with this activity
image

It returns 249. The only one that I want it’s not being returned.

The M109 is missing
image

But in the origin table it exists
image

Why only this one is missing?

The input ExtractMetadata is:

@iasmini

Could you please retry it once again and check.

Hi , could be because some how tool felt that row is with different tag
What you can do here is
Do the datasraping , show that particular row first as indication to the tool , then it asks for want to capture whole data table , clicking on yes can show you the result, this way you can verify

And one more is if the above verification is still not giving fix to you
Then use correlated data extraction by extracting column level data

Hi, I’ve done a lot of times and it’s returning the same error.

Hi, I’ve looked the tags in html source code and it’'s the same for the 2 rows.

At the beginning of robot execution I ask the start and end date to limit the period of the paid invoices. But, I do not use these dates in the Data Scraping activity.
I use these dates later to check for paid invoices within the time frame set by the user.
I did 2 tests:

  1. I put the first period from 03/10/2019 to 09/10/2019, so the robot did not get the invoice paid on 08/10/2019.
  2. I changed the period to November 11/03/2019 to 09/11/2019, so the robot did not get the invoice paid on 08/11/2019.
    I do not understand why he is filtering the table and removing exactly the invoice I need to be fetched.

@iasmini
welcome to the forum

for sharing selectors or other code parts please use the button grafik from the editor.

otherwise we cant see the info that you do provide to us

As already mentioned deeper uiexplorer / selector analysis is recommended. With different tests in seperate xaml conquer 109/108 or 110 retrieval

Hi, here is the code of the ExtractMetadata:

<extract>
<row exact='1'>
	<webctrl tag='div' class='tabela-extrato-zebra' idx='1'/>
	<webctrl tag='div' class='linha-tabela-row'/>
	<webctrl tag='div' class='linha-tabela' idx='1'/>
</row>
<column exact='1' name='Parcela' attr='text'>
	<webctrl tag='div' class='tabela-extrato-zebra' idx='1'/>
	<webctrl tag='div' class='linha-tabela-row'/>
	<webctrl tag='div' class='linha-tabela' idx='1'/>
	<webctrl tag='span' class='tbl-02' idx='1'/>
</column>
<column exact='1' name='Valor pago' attr='text'>
	<webctrl tag='div' class='tabela-extrato-zebra' idx='1'/>
	<webctrl tag='div' class='linha-tabela-row'/>
	<webctrl tag='div' class='linha-tabela' idx='1'/>
	<webctrl tag='span' class='tbl-09' idx='1'/>
</column>
<column exact='1' name='Data do pagamento' attr='text'>
	<webctrl tag='div' class='tabela-extrato-zebra' idx='1'/>
	<webctrl tag='div' class='linha-tabela-row'/>
	<webctrl tag='div' class='linha-tabela' idx='1'/>
	<webctrl tag='span' class='tbl-10' idx='1'/>
</column>
<column exact='1' name='Data do vencimento' attr='text'>
	<webctrl tag='div' class='tabela-extrato-zebra' idx='1'/>
	<webctrl tag='div' class='linha-tabela-row'/>
	<webctrl tag='div' class='linha-tabela' idx='1'/>
	<webctrl tag='span' class='tbl-03' idx='1'/>
</column>
<column exact='1' name='Valor original' attr='text'>
	<webctrl tag='div' class='tabela-extrato-zebra' idx='1'/>
	<webctrl tag='div' class='linha-tabela-row'/>
	<webctrl tag='div' class='linha-tabela' idx='1'/>
	<webctrl tag='span' class='tbl-04' idx='1'/>
</column>

And this is the html source code from the table lines:

</div>

      
        	 <div class="linha-tabela-row">
        	    <div class="more-icon"><i class="fa fa-plus"></i></div>
            	<div class="linha-tabela">
                <span class="tbl-01">
                     
                        
            			<img src="/sap/public/bc/its/mimes/ZPF/99/pago_02.png" />
                        
                     
                  </span>
                  <span class="tbl-02">M108 - MENSAL</span>
                  <span class="tbl-03">08/09/2019</span>
                  <span class="tbl-04">           1.039,36</span>
                  <span class="tbl-05">               0,00</span>
                  <span class="tbl-06">              23,39</span>
                  <span class="tbl-07">               0,00</span>
                  <span class="tbl-08">           1.062,75</span>
                  <span class="tbl-09">           1.062,75</span>
                  <span class="tbl-10">16/09/2019</span>
    	        <span class="tbl-11">
                    
                       <!--VAZIO-->
                   
                  </span>

            	</div>

            
        </div>

      
        	 <div class="linha-tabela-row">
        	    <div class="more-icon"><i class="fa fa-plus"></i></div>
            	<div class="linha-tabela">
                <span class="tbl-01">
                     
                        
            			<img src="/sap/public/bc/its/mimes/ZPF/99/pago_02.png" />
                        
                     
                  </span>
                  <span class="tbl-02">M109 - MENSAL</span>
                  <span class="tbl-03">08/10/2019</span>
                  <span class="tbl-04">           1.039,36</span>
                  <span class="tbl-05">               0,00</span>
                  <span class="tbl-06">               0,00</span>
                  <span class="tbl-07">               0,00</span>
                  <span class="tbl-08">           1.039,36</span>
                  <span class="tbl-09">           1.039,36</span>
                  <span class="tbl-10">07/10/2019</span>
    	        <span class="tbl-11">
                    
                       <!--VAZIO-->
                   
                  </span>

            	</div>

            
        </div>

@iasmini
As you mentioned there is no difference to encounter.
For a test run I would delete all rows except 108,109,110 via the Developertools F12 and would check the result of datascraping. This test should have only 2 results:

  • #1 109 is catched
  • #2 109 is missing

let see what is happening

I think it has to do with the period entered by the user because depending on the period entered the invoice is fetched or not. But I can’t understand why this since I don’t use the period in scraping activity.

Hi, pls remove idx from metadata and see
It should work

I removed the idx and ran the robot, it worked at the first time. :slight_smile:
Then, I ran again a second time without changing anything else on the robot and it didn’t work. :sob:

Here is the new code:

<extract>
<row exact='1'>
	<webctrl tag='div' class='tabela-extrato-zebra'/>
	<webctrl tag='div' class='linha-tabela-row'/>
	<webctrl tag='div' class='linha-tabela'/>
</row>
<column exact='1' name='Parcela' attr='text'>
	<webctrl tag='div' class='tabela-extrato-zebra'/>
	<webctrl tag='div' class='linha-tabela-row'/>
	<webctrl tag='div' class='linha-tabela'/>
	<webctrl tag='span' class='tbl-02'/>
</column>
<column exact='1' name='Valor pago' attr='text'>
	<webctrl tag='div' class='tabela-extrato-zebra'/>
	<webctrl tag='div' class='linha-tabela-row'/>
	<webctrl tag='div' class='linha-tabela'/>
	<webctrl tag='span' class='tbl-09'/>
</column>
<column exact='1' name='Data do pagamento' attr='text'>
	<webctrl tag='div' class='tabela-extrato-zebra'/>
	<webctrl tag='div' class='linha-tabela-row'/>
	<webctrl tag='div' class='linha-tabela'/>
	<webctrl tag='span' class='tbl-10'/>
</column>
<column exact='1' name='Data do vencimento' attr='text'>
	<webctrl tag='div' class='tabela-extrato-zebra'/>
	<webctrl tag='div' class='linha-tabela-row'/>
	<webctrl tag='div' class='linha-tabela'/>
	<webctrl tag='span' class='tbl-03'/>
</column>
<column exact='1' name='Valor original' attr='text'>
	<webctrl tag='div' class='tabela-extrato-zebra'/>
	<webctrl tag='div' class='linha-tabela-row'/>
	<webctrl tag='div' class='linha-tabela'/>
	<webctrl tag='span' class='tbl-04'/>
</column>