Checking for errors in opening or updating PVD files

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.

Can you share the pvpython code you are using ?

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.

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.

1 Like

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!

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