# Error message for clip or slice in a saved state

**URL:** https://discourse.paraview.org/t/error-message-for-clip-or-slice-in-a-saved-state/9710
**Category:** ParaView Support
**Created:** [May 31, 2022, 6:34am UTC](https://discourse.paraview.org/t/error-message-for-clip-or-slice-in-a-saved-state/9710 "2022-05-31T06:34:47Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Venke](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/v/6de8d8/32.png) [@Venke](https://discourse.paraview.org/u/Venke)
#### Post date: [May 31, 2022, 6:34am UTC](https://discourse.paraview.org/t/error-message-for-clip-or-slice-in-a-saved-state/9710/1 "2022-05-31T06:34:47Z")

</div>

Hi,

Whenever I apply a clip or slice to a netcdf-volume and save the state, an error message appears when opening the state:

```auto
ERROR: In C:\glr\builds\paraview\paraview-ci\build\superbuild\paraview\src\VTK\Common\ExecutionModel\vtkDemandDrivenPipeline.cxx, line 760
vtkPVDataRepresentationPipeline (0000023D15BA3CB0): Input for connection index 0 on input port index 0 for algorithm vtkImageSliceRepresentation(0000023D15DEC140) is of type vtkRectilinearGrid, but a vtkImageData is required.

```

Everything renders fine and as expected, so my “workaround” has always been to just ignore the error message. I was just wondering why the message appears and if there is a little trick to avoid it?

Just to be clear: no error message appears when I apply the clip or slice (nor later on). It only pops up when I open a state where a clip or slice is saved.

Thanks and cheers,  
Venke

---

<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: [June 1, 2022, 9:09am UTC](https://discourse.paraview.org/t/error-message-for-clip-or-slice-in-a-saved-state/9710/2 "2022-06-01T09:09:27Z")

</div>

Hi @Venke ,

Please share your dataset.

Best,

---

<div class="post-metadata">

### Author: ![Venke](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/v/6de8d8/32.png) [@Venke](https://discourse.paraview.org/u/Venke)
#### Post date: [June 1, 2022, 9:39am UTC](https://discourse.paraview.org/t/error-message-for-clip-or-slice-in-a-saved-state/9710/3 "2022-06-01T09:39:26Z")

</div>

[MYTEST.nc](https://discourse.paraview.org/uploads/short-url/8ArE3TPN3lAK4qaKGePRTA08Mn5.nc) (2.9 MB)  
Hi Mathieu,  
here is an exemplary Netcdf-volume-file. I’ll also upload a state file where I loaded the volume and applied a clip. Thanks for your time,  
Venke

[MYTEST.pvsm](https://discourse.paraview.org/uploads/short-url/wl9VKGconqJB1BsWPrO6JMJ3Rw5.pvsm) (303.3 KB)

---

<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: [June 1, 2022, 9:51am UTC](https://discourse.paraview.org/t/error-message-for-clip-or-slice-in-a-saved-state/9710/4 "2022-06-01T09:51:24Z")

</div>

Hi @Venke ,

This warning can be ignored, but this is an actual issue that should be fixed. Could you open it on:  
[https://gitlab.kitware.com/paraview/paraview/-/issues](https://gitlab.kitware.com/paraview/paraview/-/issues)

Thanks,

---

<div class="post-metadata">

### Author: ![Venke](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/v/6de8d8/32.png) [@Venke](https://discourse.paraview.org/u/Venke)
#### Post date: [June 1, 2022, 10:32am UTC](https://discourse.paraview.org/t/error-message-for-clip-or-slice-in-a-saved-state/9710/5 "2022-06-01T10:32:29Z")

</div>

Thanks, Mathieu. [https://gitlab.kitware.com/paraview/paraview/-/issues/21417](https://gitlab.kitware.com/paraview/paraview/-/issues/21417)

---

<div class="post-metadata">

### Author: ![Venke](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/v/6de8d8/32.png) [@Venke](https://discourse.paraview.org/u/Venke)
#### Post date: [January 18, 2024, 9:56am UTC](https://discourse.paraview.org/t/error-message-for-clip-or-slice-in-a-saved-state/9710/6 "2024-01-18T09:56:39Z")

</div>

In ParaView 5.12.0 when I save a state with a netcdf-volume (even without any filter applied on it) I get the same error-message as mentioned above when loading it.  
Even if the representation is not “surface” but “outline”, the error persists. Although this does not affect the rendering and I know that it can be ignored, it is a little annoying to have the Output Messages box pop up with the errors almost each time I open a state. Maybe a fix to this will make it into 5.13… 😀

Having said this, I want to say thank you for a great software. I absolutely love the new feature of embedding the state in a screenshot!
