# Possibility to convert datarray to UInt64

**URL:** https://discourse.paraview.org/t/possibility-to-convert-datarray-to-uint64/4836
**Category:** Development
**Tags:** vtk
**Created:** [July 14, 2020, 12:41pm UTC](https://discourse.paraview.org/t/possibility-to-convert-datarray-to-uint64/4836 "2020-07-14T12:41:44Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![ErikNixdorf](https://discourse.paraview.org/user_avatar/discourse.paraview.org/eriknixdorf/32/4517_2.png) [@ErikNixdorf](https://discourse.paraview.org/u/ErikNixdorf)
#### Post date: [July 14, 2020, 12:41pm UTC](https://discourse.paraview.org/t/possibility-to-convert-datarray-to-uint64/4836/1 "2020-07-14T12:41:44Z")

</div>

Hi, I have been attempting to create a new datarray of _type =UInt64_ using the _calculator_ filter but failed. Even choosing _Unsigned Long_ as _Result Array Type_ in the filter results in a dataarray of type _UInt32_. On the other hand, chosing _Id Type_ results in dataarray of type _Int64_ but not _UInt64_. Is there any possibility to export a data array from ParaView as type _UInt64_? I am aware of the opportunity to change the type manually in the resulting vtu files, but this is not a very elegant solution.

Best Regards

Erik

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [July 15, 2020, 9:48am UTC](https://discourse.paraview.org/t/possibility-to-convert-datarray-to-uint64/4836/2 "2020-07-15T09:48:28Z")

</div>

Using unsigned long create a UInt64 array in my tests. Which version of ParaView are you using?

---

<div class="post-metadata">

### Author: ![ErikNixdorf](https://discourse.paraview.org/user_avatar/discourse.paraview.org/eriknixdorf/32/4517_2.png) [@ErikNixdorf](https://discourse.paraview.org/u/ErikNixdorf)
#### Post date: [July 15, 2020, 10:49am UTC](https://discourse.paraview.org/t/possibility-to-convert-datarray-to-uint64/4836/3 "2020-07-15T10:49:14Z")

</div>

Hi Mathieu,

thx for quick reply. my configuration is:

 ![image](https://discourse.paraview.org/uploads/default/original/2X/0/04a4f48a892c5704b4a16bce10a9205ed2189251.png)

I also tested in on a machine of another colleague and got similar results to mine, strange

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [July 15, 2020, 10:52am UTC](https://discourse.paraview.org/t/possibility-to-convert-datarray-to-uint64/4836/4 "2020-07-15T10:52:47Z")

</div>

Ok, so testing on windows will be necessary.

---

<div class="post-metadata">

### Author: ![ErikNixdorf](https://discourse.paraview.org/user_avatar/discourse.paraview.org/eriknixdorf/32/4517_2.png) [@ErikNixdorf](https://discourse.paraview.org/u/ErikNixdorf)
#### Post date: [July 20, 2020, 10:42am UTC](https://discourse.paraview.org/t/possibility-to-convert-datarray-to-uint64/4836/5 "2020-07-20T10:42:23Z")

</div>

Dear Mathieu,

did you get any preliminary results from the testing on windows so far?

Kind Regards

Erik

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [July 20, 2020, 12:47pm UTC](https://discourse.paraview.org/t/possibility-to-convert-datarray-to-uint64/4836/6 "2020-07-20T12:47:17Z")

</div>

So unsigned long is not the same size on windows (4bytes) and on linux (8bytes), that explains the behavior difference.

In order to be able to produce a UInt64 array on windows, we would need to expose a Unsigned long long type using a vtkUnsignedLongLongArray.

So it is not supported yet.

Please open an issue on our bugtracker if you would like to see this adressed : [https://gitlab.kitware.com/paraview/paraview/-/issues](https://gitlab.kitware.com/paraview/paraview/-/issues)

---

<div class="post-metadata">

### Author: ![ErikNixdorf](https://discourse.paraview.org/user_avatar/discourse.paraview.org/eriknixdorf/32/4517_2.png) [@ErikNixdorf](https://discourse.paraview.org/u/ErikNixdorf)
#### Post date: [July 20, 2020, 12:50pm UTC](https://discourse.paraview.org/t/possibility-to-convert-datarray-to-uint64/4836/7 "2020-07-20T12:50:17Z")

</div>

thank you very much for the clarification
