# Filter data table problem

**URL:** <https://forum.uipath.com/t/filter-data-table-problem/518940>\
**Category:** Studio\
**Tags:** system, activities\
**Created:** [February 20, 2023, 1:30pm UTC](https://forum.uipath.com/t/filter-data-table-problem/518940 "2023-02-20T13:30:28Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![Olivera\_Kalinic](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/olivera_kalinic/32/113764_2.png) [@Olivera\_Kalinic](https://forum.uipath.com/u/Olivera_Kalinic)\
**Post date:** [February 20, 2023, 1:30pm UTC](https://forum.uipath.com/t/filter-data-table-problem/518940/1 "2023-02-20T13:30:28Z")

</div>

Hi, I want to filter input table in the way below

 ![image](https://global.discourse-cdn.com/uipath/original/4X/0/d/6/0d677798e10dd683609d0bef09397fd6f3422863.png)

, but I’m getting this error

> “Filter Data Table: Conversion from string “Column104” to type ‘Date’ is not valid.”

How can I format input “Column104”?

---

<div class="post-metadata">

**Author:** ![RajKumar\_DC](https://avatars.discourse-cdn.com/v4/letter/r/b2d939/32.png) [@RajKumar\_DC](https://forum.uipath.com/u/RajKumar_DC)\
**Post date:** [February 20, 2023, 1:35pm UTC](https://forum.uipath.com/t/filter-data-table-problem/518940/2 "2023-02-20T13:35:16Z")

</div>

Hi @Olivera_Kalinic,

The error message you’re seeing indicates that UiPath is attempting to convert the value in the “Column104” column to a date, but it is not able to do so because the value is not in a valid date format.

To resolve this issue, you will need to check the data in the “Column104” column and ensure that it is in a valid date format. You may also want to check the format of the column in the input DataTable to ensure that it is set correctly.

or else

share your requirement will try deferent way

Thanks,

---

<div class="post-metadata">

**Author:** ![Olivera\_Kalinic](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/olivera_kalinic/32/113764_2.png) [@Olivera\_Kalinic](https://forum.uipath.com/u/Olivera_Kalinic)\
**Post date:** [February 20, 2023, 1:40pm UTC](https://forum.uipath.com/t/filter-data-table-problem/518940/3 "2023-02-20T13:40:51Z")

</div>

That “Column104” is on the CZ place and it is in the right format…  
Do you need some other suggestion? 🙂

![image](https://global.discourse-cdn.com/uipath/original/4X/0/4/6/04607b2c96dc34827641273de403bdd58d7a7540.png)

---

<div class="post-metadata">

**Author:** ![ppr](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/ppr/32/464097_2.png) [@ppr](https://forum.uipath.com/u/ppr)\
**Post date:** [February 20, 2023, 1:48pm UTC](https://forum.uipath.com/t/filter-data-table-problem/518940/4 "2023-02-20T13:48:38Z")

</div>

it looks like you are trying to extract 3 cols from a datatable. 2 cols are fetched native and the third one you want to fetch within a conversion.

The activity is expecting the columnname or column index, but is not supporting this type extraction configuration

 ![grafik](https://global.discourse-cdn.com/uipath/original/4X/f/5/9/f59f5b176d9e910f77b93af411a510eaa247d76c.png)  
taken form [docu](https://docs.uipath.com/activities/docs/filter-data-table)

> [@Olivera\_Kalinic](#):
>
> , but I’m getting this error
> 
> > “Filter Data Table: Conversion from string “Column104” to type ‘Date’ is not valid.”

the statement will fail for several reasons:

- pass the compiler level as it will return a string which is interpreted as the column name.
- fails on run as the value “Column104” is taken as the string converted into a datetime which is not valid as “Column104” is not representing a date

We dont know more details about your modelling and if it is involved within nested loop … or others

Instead of you can:

- use a helper column and assign the reformated value in adavance, then extract Col115,98 and the helper column
- using a LINQ statement along with some preperations

---

<div class="post-metadata">

**Author:** ![RajKumar\_DC](https://avatars.discourse-cdn.com/v4/letter/r/b2d939/32.png) [@RajKumar\_DC](https://forum.uipath.com/u/RajKumar_DC)\
**Post date:** [February 20, 2023, 1:53pm UTC](https://forum.uipath.com/t/filter-data-table-problem/518940/5 "2023-02-20T13:53:27Z")

</div>

Hi @Olivera_Kalinic ,

Ensure that the column values type is Date or Dot.

![image](https://global.discourse-cdn.com/uipath/original/4X/b/4/6/b464d58b895949513126555f0801d515568ee448.png)

![image](https://global.discourse-cdn.com/uipath/original/4X/b/b/0/bb020dac436850c1fffc7fc50c34b2f0c79979dd.png)

Thanks,

---

<div class="post-metadata">

**Author:** ![Olivera\_Kalinic](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/olivera_kalinic/32/113764_2.png) [@Olivera\_Kalinic](https://forum.uipath.com/u/Olivera_Kalinic)\
**Post date:** [February 20, 2023, 2:32pm UTC](https://forum.uipath.com/t/filter-data-table-problem/518940/6 "2023-02-20T14:32:07Z")

</div>

Column is type Date “dd.MM.yyyy”

---

<div class="post-metadata">

**Author:** ![RajKumar\_DC](https://avatars.discourse-cdn.com/v4/letter/r/b2d939/32.png) [@RajKumar\_DC](https://forum.uipath.com/u/RajKumar_DC)\
**Post date:** [February 20, 2023, 3:31pm UTC](https://forum.uipath.com/t/filter-data-table-problem/518940/7 "2023-02-20T15:31:43Z")

</div>

Hi @Olivera_Kalinic ,

Need to confirm like below screenshot.

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

Thanks,

---

<div class="post-metadata">

**Author:** ![Anil\_G](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/anil_g/32/524291_2.png) [@Anil\_G](https://forum.uipath.com/u/Anil_G)\
**Post date:** [February 20, 2023, 4:34pm UTC](https://forum.uipath.com/t/filter-data-table-problem/518940/8 "2023-02-20T16:34:32Z")

</div>

@Olivera_Kalinic

So let me explain what you are doing then may be that would route you to what you want to acheive…

So what you are doing is that you are trying to convert `column104` to a dateformat…when i say column104 it is not the column value but its literally the name column104… that is the reason bot is failing because a string or name cannot be converted to date…

Do you want each date in the column to be converted to any specific format?

If so then after filtering you cna to loop through each row and update the data …

For each row in datatable

Inside it assign with `currentrow("datecolumn") = cdate(currentrow("datecolumn").ToString).ToString("MM/dd/yyyy")`

Assuming the column type is string

Cheers

Cheers

---

<div class="post-metadata">

**Author:** ![Olivera\_Kalinic](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/olivera_kalinic/32/113764_2.png) [@Olivera\_Kalinic](https://forum.uipath.com/u/Olivera_Kalinic)\
**Post date:** [February 21, 2023, 8:16am UTC](https://forum.uipath.com/t/filter-data-table-problem/518940/9 "2023-02-21T08:16:16Z")

</div>

Column type is set to Date

![image](https://global.discourse-cdn.com/uipath/original/4X/b/4/a/b4a1572b2bdf63c1757d85764b493cf1465ce1fc.png)

but when I print it to output, I’m getting these values

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

---

<div class="post-metadata">

**Author:** ![Anil\_G](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/anil_g/32/524291_2.png) [@Anil\_G](https://forum.uipath.com/u/Anil_G)\
**Post date:** [February 21, 2023, 8:39am UTC](https://forum.uipath.com/t/filter-data-table-problem/518940/10 "2023-02-21T08:39:45Z")

</div>

@Olivera_Kalinic

In the resd rnage properties please change displayvalue option…from rawvalue

In the backend excel Stores them as these numbers

Cheers

---

<div class="post-metadata">

**Author:** ![Olivera\_Kalinic](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/olivera_kalinic/32/113764_2.png) [@Olivera\_Kalinic](https://forum.uipath.com/u/Olivera_Kalinic)\
**Post date:** [February 21, 2023, 8:55am UTC](https://forum.uipath.com/t/filter-data-table-problem/518940/11 "2023-02-21T08:55:06Z")

</div>

But I can’t see display value in the properties of Read range activity

 ![image](https://global.discourse-cdn.com/uipath/original/4X/b/d/2/bd2294e95f8547ea421f2b9a82af581510a2ebd7.png)

---

<div class="post-metadata">

**Author:** ![ppr](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/ppr/32/464097_2.png) [@ppr](https://forum.uipath.com/u/ppr)\
**Post date:** [February 21, 2023, 9:08am UTC](https://forum.uipath.com/t/filter-data-table-problem/518940/12 "2023-02-21T09:08:06Z")

</div>

> [@Olivera\_Kalinic](#):
>
> but when I print it to output, I’m getting these values

![grafik](https://global.discourse-cdn.com/uipath/original/4X/1/1/6/116e409bba3f74bb643c0d99762e057369144d9a.png)

> [@Ship Date format](https://forum.uipath.com/t/ship-date-format/510253/4):
>
> We would recommend to handle / harmonize the date value before adding the QueueItem / populating the Specific Content In the case for handling this numerical value you can do: [grafik] So for robusten it up you can think about cascading the datevalues cell formating value format type check handling dateTime Strings handling OADate numbers

> [@Parse date into a single format](https://forum.uipath.com/t/parse-date-into-a-single-format/495049/2):
>
> we can make use of the following building blocks: [grafik] Parsing many formats in one go ensure the following: [import\_systemglobalization] arrFormats = {“dd/MMM/yyyy”, “dd-MM-yyyy”, … your other formats} DateTime.ParseExact(YourString, arrFormats, cultureinfo.InvariantCulture, DateTimeStyles.None) feel free to adapt the culture info Finally we can check which case we do have to handle e.g. with regex \d+ → OADate NA → not parseable … Bringing all together we can parse the date and…

---

<div class="post-metadata">

**Author:** ![Anil\_G](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/anil_g/32/524291_2.png) [@Anil\_G](https://forum.uipath.com/u/Anil_G)\
**Post date:** [February 21, 2023, 9:20am UTC](https://forum.uipath.com/t/filter-data-table-problem/518940/13 "2023-02-21T09:20:50Z")

</div>

@Olivera_Kalinic

I guess you are using extended activities which is not official…

Try using the read emage frol  
The excel activities under app integration and you will see an option to preserve format

Cheers

---

<div class="post-metadata">

**Author:** ![Olivera\_Kalinic](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/olivera_kalinic/32/113764_2.png) [@Olivera\_Kalinic](https://forum.uipath.com/u/Olivera_Kalinic)\
**Post date:** [February 21, 2023, 10:17am UTC](https://forum.uipath.com/t/filter-data-table-problem/518940/14 "2023-02-21T10:17:08Z")

</div>

@Anil_G  
What is the name of that activity?  
Unfortunately I couldn’ find it…

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![Anil\_G](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/anil_g/32/524291_2.png) [@Anil\_G](https://forum.uipath.com/u/Anil_G)\
**Post date:** [February 21, 2023, 10:53am UTC](https://forum.uipath.com/t/filter-data-table-problem/518940/15 "2023-02-21T10:53:51Z")

</div>

@Olivera_Kalinic

Please check this

![image](https://global.discourse-cdn.com/uipath/original/4X/e/6/0/e6029ca57a5d7901bdf6e375292eddaba9057c1d.png)

Apart from this first check in Manage packages if you have downlaoded UiPath.Excel.Activities package

cheers

---

<div class="post-metadata">

**Author:** ![Olivera\_Kalinic](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/olivera_kalinic/32/113764_2.png) [@Olivera\_Kalinic](https://forum.uipath.com/u/Olivera_Kalinic)\
**Post date:** [February 21, 2023, 11:08am UTC](https://forum.uipath.com/t/filter-data-table-problem/518940/16 "2023-02-21T11:08:42Z")

</div>

> [@Anil\_G](#):
>
> currentrow(“datecolumn”)

@Anil_G

I tryed with updating column like you described

 ![image](https://global.discourse-cdn.com/uipath/original/4X/a/a/c/aac8cbd7dffa60cec6505256b72ed265fcfb19d3.png)

, but getting this

> Assign:Assign: Conversion from string “44480” to type ‘Date’ is not valid.

It seems that Read range activity converted all values from Column4 from format “dd.MM.yyyy” (Excel file) to some number (example: “44480”).

Do you know what can cause this situation?

---

<div class="post-metadata">

**Author:** ![Anil\_G](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/anil_g/32/524291_2.png) [@Anil\_G](https://forum.uipath.com/u/Anil_G)\
**Post date:** [February 21, 2023, 11:24am UTC](https://forum.uipath.com/t/filter-data-table-problem/518940/17 "2023-02-21T11:24:35Z")

</div>

> [@Anil\_G](#):
>
> In the backend excel Stores them as these numbers

@Olivera_Kalinic

Above is the reason…

Did you try this

> [@Anil\_G](#):
>
> Please check this
> 
> ![image](https://global.discourse-cdn.com/uipath/original/4X/e/6/0/e6029ca57a5d7901bdf6e375292eddaba9057c1d.png)
> 
> Apart from this first check in Manage packages if you have downlaoded UiPath.Excel.[Activities](https://docs.uipath.com/activities/docs/introduction) package

Or

Doing cdate wont work here you can try like this

`DateTime.FromOADate(currentrow("column").ToString).ToString("MM.dd.yyyy")`

Cheers
