problem reading manually wrote XML files

I am getting the same error trying to open a vts file (600 MB) created in C++.
Archana

I am sorry my error is different as follows:
ERROR: In vtkXMLParser.cxx, line 379
vtkXMLDataParser (00000275597059B0): Error parsing XML in stream at line 207986259, column 0, byte index 615566002: no element found

ERROR: In vtkXMLReader.cxx, line 520
vtkXMLStructuredGridReader (0000027558F1DC50): Error parsing input file. ReadXMLInformation aborting.

ERROR: In vtkXMLStructuredDataReader.cxx, line 345
vtkXMLStructuredGridReader (0000027558F1D2F0): Error reading extent 0 399 0 399 0 399 from piece 0

ERROR: In vtkXMLDataReader.cxx, line 410
vtkXMLStructuredGridReader (0000027558F1D2F0): Cannot read point data array “Grand Potential Density [J/m^3]” from PointData in piece 0. The data array in the element may be too short.

ERROR: In vtkXMLStructuredDataReader.cxx, line 345
vtkXMLStructuredGridReader (0000027558F1D2F0): Error reading extent 0 399 0 399 0 399 from piece 0

ERROR: In vtkXMLDataReader.cxx, line 410
vtkXMLStructuredGridReader (0000027558F1D2F0): Cannot read point data array “Grand Potential Density [J/m^3]” from PointData in piece 0. The data array in the element may be too short.

ERROR: In vtkXMLStructuredDataReader.cxx, line 345
vtkXMLStructuredGridReader (0000027558F1D2F0): Error reading extent 0 399 0 399 0 399 from piece 0

ERROR: In vtkXMLDataReader.cxx, line 410
vtkXMLStructuredGridReader (0000027558F1D2F0): Cannot read point data array “Grand Potential Density [J/m^3]” from PointData in piece 0. The data array in the element may be too short.

ERROR: In vtkXMLStructuredDataReader.cxx, line 345
vtkXMLStructuredGridReader (0000027558F1D2F0): Error reading extent 0 399 0 399 0 399 from piece 0

ERROR: In vtkXMLDataReader.cxx, line 410
vtkXMLStructuredGridReader (0000027558F1D2F0): Cannot read point data array “Grand Potential Density [J/m^3]” from PointData in piece 0. The data array in the element may be too short.

ERROR: In vtkXMLStructuredDataReader.cxx, line 345
vtkXMLStructuredGridReader (0000027558F1D2F0): Error reading extent 0 399 0 399 0 399 from piece 0

ERROR: In vtkXMLDataReader.cxx, line 410
vtkXMLStructuredGridReader (0000027558F1D2F0): Cannot read point data array “Grand Potential Density [J/m^3]” from PointData in piece 0. The data array in the element may be too short.

I wonder if there is something wrong with the data ?

Probably, please share your data

The error message is very specific about where the problem is in your XML file. Line 207986259, column 0. Look at that line to see what is missing.

My guess is your file got truncated somehow.

Thanks. Its a huge vts file so I have compressed it and sharing the linl
https://drive.google.com/file/d/1zFUV-64XDrLIDdz-ljku6lHkDzsKU7qj/view?usp=share_link

Thanks, but I am unable to open the file with any editor, because its a huge file.

Finally I can open the file - and checked the location. Nothing unusual or seems truncated.

You need to share the file.

I posted the share link above and sorry for duplication
https://drive.google.com/file/d/1zFUV-64XDrLIDdz-ljku6lHkDzsKU7qj/view?usp=share_link

@mwestphal, are you able to download the file? To add further information, this data was generated by C++ code. I do not have any problem loading smaller data sets, e.g., corresponding to 200 x 200 x 200 grid size.
Thanks

Your data opens fine (albeits slowly because you are using ascii) on my Linux using ParaView 5.11.1.

1 Like

Did you load it vias GUI or python scripts?
Indeed I am using Windows and trying to load via PV GUI.
It throws error while loading the file (see above or the link below) - I do not mind if it is slow.
Enjoy your vacation!
I really appreciate your response despite being on vacation.

Archana

GUI