# Inconsistent error while creating VTU file

**URL:** https://discourse.paraview.org/t/inconsistent-error-while-creating-vtu-file/13138
**Category:** ParaView Support
**Tags:** vtk, python
**Created:** [October 30, 2023, 10:59am UTC](https://discourse.paraview.org/t/inconsistent-error-while-creating-vtu-file/13138 "2023-10-30T10:59:56Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Malo\_R](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/m/cab0a1/32.png) [@Malo\_R](https://discourse.paraview.org/u/Malo_R)
#### Post date: [October 30, 2023, 10:59am UTC](https://discourse.paraview.org/t/inconsistent-error-while-creating-vtu-file/13138/1 "2023-10-30T10:59:56Z")

</div>

Hello,

I’m creating multiple VTU files, from mesh described in TXT files.  
Most of the time it’s all okay (there is no running error in python). But for sometime (seems random for now) for some files, there is an error in the VTU file on the range of the points (coordinate way to big).

My mesh file is build as below :

- Mesh : type of element, id of points, value to be set
- Points : id of point, coordinates (X,Y,Z)

Here are examples of files, with the script, an input file, and two outputs : one is acting as wanted, not the other.

[BC\_VA.txt](https://discourse.paraview.org/uploads/short-url/5jQTzh9em4l5A7opFP7G8YAwQqB.txt) (196.1 KB)  
[BC\_VA\_error.vtu](https://discourse.paraview.org/uploads/short-url/lKflGodP5u939jx104hrfcz1f3g.vtu) (28.0 KB)  
[BC\_VA\_ok.vtu](https://discourse.paraview.org/uploads/short-url/rdXywctKud5cXsseeWRg86ho0W6.vtu) (28.0 KB)  
[MSH\_to\_VTU.py](https://discourse.paraview.org/uploads/short-url/7uCZ1WOWeSDyjSeZzrZfOqEaqyd.py) (1.3 KB)

One hypothesis is that python is going through my files to rapidly, even before my VTU files are entirely created. is that possible ?
