# Checking for errors in opening or updating PVD files

**URL:** https://discourse.paraview.org/t/checking-for-errors-in-opening-or-updating-pvd-files/15877
**Category:** ParaView Support
**Tags:** python
**Created:** [December 17, 2024, 5:51pm UTC](https://discourse.paraview.org/t/checking-for-errors-in-opening-or-updating-pvd-files/15877 "2024-12-17T17:51:44Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Christopher](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/c/439d5e/32.png) [@Christopher](https://discourse.paraview.org/u/Christopher)
#### Post date: [December 17, 2024, 5:51pm UTC](https://discourse.paraview.org/t/checking-for-errors-in-opening-or-updating-pvd-files/15877/1 "2024-12-17T17:51:45Z")

</div>

Hello all.  
I’m repeatedly checking for a PVD file change in some directory.  
The problem that I have is that sometimes the dependencies of the PVD file have not yet been prepared and because of this, the file won’t properly open or update!  
As I’m using both PVDReader and ReloadFiles functions in Python, Is there any way to check if the PVD file is properly loaded?  
Right now, If the file is not properly loaded I get some red errors logged in my console without returning any error code or throwing any exceptions at all!  
Is there any workaround for this issue?  
Thanks a lot in advance.

---

<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: [December 18, 2024, 8:14am UTC](https://discourse.paraview.org/t/checking-for-errors-in-opening-or-updating-pvd-files/15877/2 "2024-12-18T08:14:42Z")

</div>

Can you share the pvpython code you are using ?

---

<div class="post-metadata">

### Author: ![Christopher](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/c/439d5e/32.png) [@Christopher](https://discourse.paraview.org/u/Christopher)
#### Post date: [December 19, 2024, 7:53pm UTC](https://discourse.paraview.org/t/checking-for-errors-in-opening-or-updating-pvd-files/15877/3 "2024-12-19T19:53:48Z")

</div>

```auto
import paraview.simple as pvs
test = pvs.PVDReader(FileName="address to a PVD file")

```

If the file is already open, I use this command instead:  
`pvs.ReloadFiles(test)`  
If the file is not properly prepared to be opened, I will only get errors in the console without returning anything or throwing an exception!  
Thanks a lot.

---

<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: [December 20, 2024, 8:03am UTC](https://discourse.paraview.org/t/checking-for-errors-in-opening-or-updating-pvd-files/15877/4 "2024-12-20T08:03:46Z")

</div>

Indeed, there is no API to know if the last pipeline execution was successful or not.  
You can check the output information of each source for their number of cells and such.

Still, I think your request is valid and `UpdatePipeline` should return a boolean about the pipeline status imo.

---

<div class="post-metadata">

### Author: ![Christopher](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/c/439d5e/32.png) [@Christopher](https://discourse.paraview.org/u/Christopher)
#### Post date: [December 21, 2024, 5:30am UTC](https://discourse.paraview.org/t/checking-for-errors-in-opening-or-updating-pvd-files/15877/5 "2024-12-21T05:30:06Z")

</div>

What a pity! Can you tell me how I can check the last pipeline execution, validate, and verify if it is loaded correctly?  
Right now, I parse the content of the PVD file and check whether its dependencies exist or not!  
I thought that we could somehow get at least one of the errors shown when we open an imperfect PVD file!

---

<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: [December 30, 2024, 9:17am UTC](https://discourse.paraview.org/t/checking-for-errors-in-opening-or-updating-pvd-files/15877/6 "2024-12-30T09:17:02Z")

</div>

> [@Christopher](#):
>
> Can you tell me how I can check the last pipeline execution, validate, and verify if it is loaded correctly?

Using the DataInformation API, you can check the output is not empty at least.
