# Java Client Application Table Data Extraction

**URL:** <https://forum.uipath.com/t/java-client-application-table-data-extraction/126048>\
**Category:** Help\
**Tags:** studio, java, uiautomation, activities\
**Created:** [June 18, 2019, 11:56am UTC](https://forum.uipath.com/t/java-client-application-table-data-extraction/126048 "2019-06-18T11:56:56Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![ShreeJnanesh](https://avatars.discourse-cdn.com/v4/letter/s/db5fbb/32.png) [@ShreeJnanesh](https://forum.uipath.com/u/ShreeJnanesh)\
**Post date:** [June 18, 2019, 11:56am UTC](https://forum.uipath.com/t/java-client-application-table-data-extraction/126048/1 "2019-06-18T11:56:56Z")

</div>

Hi All,

Unable to fetch all the data from the table in Java Client Application, Since there is no specific Row and Column index in the selector, The window has only cell index which appears regardless there is a data in the grid or not.

 ![image](https://global.discourse-cdn.com/uipath/original/3X/2/f/2f8c7eed9a5897530314007ea5454ca364dcf9ac.png)  
 ![image](https://global.discourse-cdn.com/uipath/original/3X/e/c/ecab9ccfeecdc077dc6af10e18fccdc61715c391.png) ![image](https://global.discourse-cdn.com/uipath/original/3X/5/a/5ac6a1dd52513c484a9c02a3ad3aabfc19f8fe5b.png)

Please help with this.  
Thanks in advance.

Regards,  
Shree

---

<div class="post-metadata">

**Author:** ![Palaniyappan](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/palaniyappan/32/524095_2.png) [@Palaniyappan](https://forum.uipath.com/u/Palaniyappan)\
**Post date:** [June 18, 2019, 12:58pm UTC](https://forum.uipath.com/t/java-client-application-table-data-extraction/126048/2 "2019-06-18T12:58:56Z")

</div>

Hi @ShreeJnanesh

Welcome to UiPath community  
is the column or column name or any of the cell in the table is accessible as element…  
if its accessible we can use data scrapping option from design menu  
or if its looking as a image, use Screen scrapping option from same design menu  
That would work for sure  
and also make sure that java extension is installed

> **[Studio - Extension for Java](https://docs.uipath.com/studio/standalone/latest/user-guide/extension-for-java)**
>
> The UiPath Documentation Portal - the home of all our valuable information. Find here everything you need to guide you in your automation journey in the UiPath ecosystem, from complex installation guides to quick tutorials, to practical business...

Kindly try this and let know for any queries or clarification  
Cheers @ShreeJnanesh

---

<div class="post-metadata">

**Author:** ![AshwinS2](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/ashwins2/32/176686_2.png) [@AshwinS2](https://forum.uipath.com/u/AshwinS2)\
**Post date:** [June 18, 2019, 12:59pm UTC](https://forum.uipath.com/t/java-client-application-table-data-extraction/126048/3 "2019-06-18T12:59:11Z")

</div>

Is Java extension enabled in studio

---

<div class="post-metadata">

**Author:** ![ShreeJnanesh](https://avatars.discourse-cdn.com/v4/letter/s/db5fbb/32.png) [@ShreeJnanesh](https://forum.uipath.com/u/ShreeJnanesh)\
**Post date:** [June 18, 2019, 1:15pm UTC](https://forum.uipath.com/t/java-client-application-table-data-extraction/126048/4 "2019-06-18T13:15:25Z")

</div>

Hi @Palaniyappan and @AshwinS2

The Java extension has been successfully installed.

@Palaniyappan

The column names are Present in the grid and can be accessed. But it has no column or row index, also the cell index is as below

 ![image](https://global.discourse-cdn.com/uipath/original/3X/4/9/49008399ca3030b8f788fa8c2bb2ce1e91c4d694.png)

Irrespective of the data in the grid i:e single row or more than 12 the cell index remain the same.

Regards,  
Shree

---

<div class="post-metadata">

**Author:** ![AshwinS2](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/ashwins2/32/176686_2.png) [@AshwinS2](https://forum.uipath.com/u/AshwinS2)\
**Post date:** [June 18, 2019, 1:19pm UTC](https://forum.uipath.com/t/java-client-application-table-data-extraction/126048/5 "2019-06-18T13:19:52Z")

</div>

Hi @ShreeJnanesh

Try to do data scrapping and stored in extract datat table before using write range use build data table activity and bind the data

Thanks  
Ashwin.S

---

<div class="post-metadata">

**Author:** ![ShreeJnanesh](https://avatars.discourse-cdn.com/v4/letter/s/db5fbb/32.png) [@ShreeJnanesh](https://forum.uipath.com/u/ShreeJnanesh)\
**Post date:** [June 18, 2019, 1:24pm UTC](https://forum.uipath.com/t/java-client-application-table-data-extraction/126048/6 "2019-06-18T13:24:05Z")

</div>

Hi @AshwinS2

Since it is not a web application, The data scrapping method is not able to extract the data.

It shows the following error.

![image](https://global.discourse-cdn.com/uipath/original/3X/d/d/dd75669880df8fc2df9e7e3bb52d83d418fd5cc4.png)

Thanks,  
Shree

---

<div class="post-metadata">

**Author:** ![Palaniyappan](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/palaniyappan/32/524095_2.png) [@Palaniyappan](https://forum.uipath.com/u/Palaniyappan)\
**Post date:** [June 18, 2019, 1:35pm UTC](https://forum.uipath.com/t/java-client-application-table-data-extraction/126048/7 "2019-06-18T13:35:01Z")

</div>

Fine then use **screen scrapping** as suggested before and in that use Full text or OCR text to get the details, in a unstructured form, get the output with a variable of type string  
–then use **generate datatable** activity and pass the above variable as input and get the output as datatable  
–now we can use this datatable wherever we want  
Cheers @ShreeJnanesh

---

<div class="post-metadata">

**Author:** ![ShreeJnanesh](https://avatars.discourse-cdn.com/v4/letter/s/db5fbb/32.png) [@ShreeJnanesh](https://forum.uipath.com/u/ShreeJnanesh)\
**Post date:** [June 18, 2019, 1:58pm UTC](https://forum.uipath.com/t/java-client-application-table-data-extraction/126048/8 "2019-06-18T13:58:01Z")

</div>

Hi @Palaniyappan,

Thanks for your review,

The visible part of the grid is only 8 columns out of 14, and only 10 rows. There is data outside the visibility area, so those data won’t get extracted.  
Is there any methods to extract all those data, by looping through attributes.

The way I thought to process is grouping  
(Final cell no-Initial cell no)/No of columns gives the no of row items. Then, put it to a DataTable, but if the data exceeds the no of rows i:e 10 it won’t extract the remaining data.

Thanks,  
Shree

---

<div class="post-metadata">

**Author:** ![ShreeJnanesh](https://avatars.discourse-cdn.com/v4/letter/s/db5fbb/32.png) [@ShreeJnanesh](https://forum.uipath.com/u/ShreeJnanesh)\
**Post date:** [June 20, 2019, 10:55am UTC](https://forum.uipath.com/t/java-client-application-table-data-extraction/126048/9 "2019-06-20T10:55:55Z")

</div>

> [@ShreeJnanesh](#):
>
> The way I thought to process is grouping  
> (Final cell no-Initial cell no)/No of columns gives the no of row items. Then, put it to a DataTable, but if the data exceeds the no of rows i:e 10 it won’t extract the remaining data.

Hi All,  
Since there were no Reliable selectors in the application and no specific activity to extract the data table from the java application, I did manage to find a solution.  
The solution for this table extraction is,  
Since there were each cell index and 12 rows, Using Get Text activity to copy the data, Send hotkey activity to scroll down and add the extracted values to the created data table with their specific column.

Thanks, @Palaniyappan @AshwinS2 for guiding me,

Regards,  
Shree

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/system/32/182466_2.png) [@system](https://forum.uipath.com/u/system)\
**Post date:** [June 23, 2019, 11:09am UTC](https://forum.uipath.com/t/java-client-application-table-data-extraction/126048/10 "2019-06-23T11:09:15Z")

</div>

Closed on June 23, 2019, 11:09am UTC

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.
