Export as Image a view of a family loaded in a project?

Hello everyone:
I am trying to export as an image a view of a family that I have loaded in my project.

In the Python node I filter the view by its name (Imagen)

With this view and the path, give me the following error. I don´t understand it:

However, if I try with any view of the project itself, it works. It really gives an error, but the image is saved:

I suposse the problem is that it tries to look up the “Imagen” view in the project and does not exist?
I’m lost, would someone know how to help me with this?

Thanks

Up