# Loading vts files in pvbatch

**URL:** https://discourse.paraview.org/t/loading-vts-files-in-pvbatch/566
**Category:** ParaView Support
**Created:** [September 12, 2018, 11:08pm UTC](https://discourse.paraview.org/t/loading-vts-files-in-pvbatch/566 "2018-09-12T23:08:07Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![jake](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/j/f475e1/32.png) [@jake](https://discourse.paraview.org/u/jake)
#### Post date: [September 12, 2018, 11:08pm UTC](https://discourse.paraview.org/t/loading-vts-files-in-pvbatch/566/1 "2018-09-12T23:08:08Z")

</div>

Hi All,

I am having some problems loading a structured .vts file using a python script and pvbatch.  
The vts file has a xml header and contains a static grid and several time step data sets in binary.

The file loads perfectly well in the ParaView GUI but throws the following warning when loading with pvbatch

Warning: In /home/buildslave/dashboards/buildbot/paraview-pvbinsdash-linux-shared-release\_superbuild/build/superbuild/paraview/src/VTK/IO/Parallel/vtkMultiBlockPLOT3DReader.cxx, line 1364  
vtkMPIMultiBlockPLOT3DReader (0x7394560): This appears to be an ASCII file. Please make sure that all settings are correct to read it correctly.

and subsequently fails to load the data.  
I am using the following python command

field\_0\_vts = XMLStructuredGridReader( FileName=[’./field\_0.vts’] )

which was output via the paraview start trace function.

I am assuming that the XMLStructuredGridReader function does not know how to deal with this type of vts file? but I am not sure exactly as I don’t know what ParaView is doing.

Any help would be much appreciated.

Kind regards,  
Jake

---

<div class="post-metadata">

### Author: ![jake](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/j/f475e1/32.png) [@jake](https://discourse.paraview.org/u/jake)
#### Post date: [September 13, 2018, 11:39am UTC](https://discourse.paraview.org/t/loading-vts-files-in-pvbatch/566/2 "2018-09-13T11:39:59Z")

</div>

Hi all, found my mistake. The file was being read fine but I failed to display the data with a proper representation.
