# Error when loading a vtp file "cannot read points array"

**URL:** https://discourse.paraview.org/t/error-when-loading-a-vtp-file-cannot-read-points-array/7856
**Category:** ParaView Support
**Created:** [August 24, 2021, 5:28am UTC](https://discourse.paraview.org/t/error-when-loading-a-vtp-file-cannot-read-points-array/7856 "2021-08-24T05:28:34Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![JOJO](https://discourse.paraview.org/user_avatar/discourse.paraview.org/jojo/32/7423_2.png) [@JOJO](https://discourse.paraview.org/u/JOJO)
#### Post date: [August 24, 2021, 5:28am UTC](https://discourse.paraview.org/t/error-when-loading-a-vtp-file-cannot-read-points-array/7856/1 "2021-08-24T05:28:34Z")

</div>

Hi, everyone.  
I got the error below when I am trying to open a vtp file.

 ![I)AV%9NHN31BGC@1JU6W6](https://discourse.paraview.org/uploads/default/original/2X/0/085ca4c5e542e71743fa5910a8bfad91aa40b234.jpeg)

I have check the vtk\_header and the file size. Unfortunately, I cannot find anything wrong.

 ![2RXOXT(Z0@}J(3ZB5L](https://discourse.paraview.org/uploads/default/original/2X/8/88749163a03b7d13ac3473f869c485a141ad83f3.png)

How to fix this problem.  
Regards

---

<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: [August 24, 2021, 8:05am UTC](https://discourse.paraview.org/t/error-when-loading-a-vtp-file-cannot-read-points-array/7856/2 "2021-08-24T08:05:53Z")

</div>

please share the file.

---

<div class="post-metadata">

### Author: ![JOJO](https://discourse.paraview.org/user_avatar/discourse.paraview.org/jojo/32/7423_2.png) [@JOJO](https://discourse.paraview.org/u/JOJO)
#### Post date: [August 24, 2021, 9:01am UTC](https://discourse.paraview.org/t/error-when-loading-a-vtp-file-cannot-read-points-array/7856/3 "2021-08-24T09:01:16Z")

</div>

here the link of the data file is attached, it seems too big. so I send it to wetransfer.

> **[PART\_00000.vtp](https://wetransfer.com/downloads/933c1899967072dda0ee979db6520db220210824085425/0a4ed5abe20f360ce377c725d92a4ebb20210824085452/e7db6f)**
>
> 1 file sent via WeTransfer, the simplest way to send your files around the world

this is the data file. please note that in order to reduce the file size (still 1.7G), I only write the “positon” data.  
The lack of pressure and velocity is ok for loading.

@mwestphal  
Thanks a lot.  
Regards.

---

<div class="post-metadata">

### Author: ![JOJO](https://discourse.paraview.org/user_avatar/discourse.paraview.org/jojo/32/7423_2.png) [@JOJO](https://discourse.paraview.org/u/JOJO)
#### Post date: [August 26, 2021, 3:01am UTC](https://discourse.paraview.org/t/error-when-loading-a-vtp-file-cannot-read-points-array/7856/4 "2021-08-26T03:01:06Z")

</div>

May I ask have you open the file successfully.  
sorry I didn’t mean to border you, just want to know where the problem is.

---

<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: [August 26, 2021, 7:14am UTC](https://discourse.paraview.org/t/error-when-loading-a-vtp-file-cannot-read-points-array/7856/5 "2021-08-26T07:14:49Z")

</div>

I have the same issue. How do you generate this file ?

---

<div class="post-metadata">

### Author: ![JOJO](https://discourse.paraview.org/user_avatar/discourse.paraview.org/jojo/32/7423_2.png) [@JOJO](https://discourse.paraview.org/u/JOJO)
#### Post date: [August 26, 2021, 7:37am UTC](https://discourse.paraview.org/t/error-when-loading-a-vtp-file-cannot-read-points-array/7856/6 "2021-08-26T07:37:23Z")

</div>

This file is the output of an opensource CFD solver GPUSPH.  
And I also create a topic on their forum.

> **[Failed when open the vtp file](https://gpusph.discourse.group/t/failed-when-open-the-vtp-file/160/6)**
>
> Hello, I am trying to fix this problem these days. I suspect is there anything wrong with my modifications. Unfortunately, I cannot find anything worng. Today, I test it on the original GPUSPH-5.0, both master and next. And I found that the outputs...

> <https://github.com/GPUSPH/gpusph/issues/74>
>
> Dear all,
> Recently, I encountered a problem which I never saw before.
> I have c…reated a topic in GPUSPH forum, please view the detail here.
> https://gpusph.discourse.group/t/failed-when-open-the-vtp-file/160/7
> 
> And the testcase is attached below.
> \[cubewater.zip\](https://github.com/GPUSPH/gpusph/files/7044958/cubewater.zip)
> 
> Best regards.

It is so strange and I cannot determine what is going on till now.

---

<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: [August 26, 2021, 11:10am UTC](https://discourse.paraview.org/t/error-when-loading-a-vtp-file-cannot-read-points-array/7856/7 "2021-08-26T11:10:55Z")

</div>

Probably a file generation issue on GPUSPH then.

---

<div class="post-metadata">

### Author: ![JOJO](https://discourse.paraview.org/user_avatar/discourse.paraview.org/jojo/32/7423_2.png) [@JOJO](https://discourse.paraview.org/u/JOJO)
#### Post date: [August 26, 2021, 11:40am UTC](https://discourse.paraview.org/t/error-when-loading-a-vtp-file-cannot-read-points-array/7856/8 "2021-08-26T11:40:31Z")

</div>

Maybe.  
If I am right. the error message is thrown by some header checking…  
However, the file size is reasonable, the offset of the arrays is right. Then why this exception is triggered.  
Anyway, I am trying to build VTK to find what is going on…  
Please let me know if you have any advice.  
Regards
