# Load State Error with Transform Filter

**URL:** https://discourse.paraview.org/t/load-state-error-with-transform-filter/8597
**Category:** ParaView Support
**Created:** [December 8, 2021, 6:49pm UTC](https://discourse.paraview.org/t/load-state-error-with-transform-filter/8597 "2021-12-08T18:49:41Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![nurw](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/n/f6c823/32.png) [@nurw](https://discourse.paraview.org/u/nurw)
#### Post date: [December 8, 2021, 6:49pm UTC](https://discourse.paraview.org/t/load-state-error-with-transform-filter/8597/1 "2021-12-08T18:49:41Z")

</div>

Hello,

Does anyone know if the save/load state works fine when the state pipeline includes a Transform filter? I consistently received errors while loading a state that incudes the Transform filter. When I did not include the Transform filter in the pipeline, I can load the state just fine. Here’s a little info:  
-ParaView 5.9.0  
-Windows 10  
-I made sure that the data file is in the same directory as the state file  
-Here is some snapshots of the error message:

 ![1](https://discourse.paraview.org/uploads/default/original/2X/1/1fe54b56009e7acecb1e26008bcce5640356b720.png)  
 ![2](https://discourse.paraview.org/uploads/default/original/2X/7/734c09d4968c580e6418fa597209ce1c01c157d7.png)

Anyone finds any workaround on this?

Thank you!

---

<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 9, 2021, 8:30am UTC](https://discourse.paraview.org/t/load-state-error-with-transform-filter/8597/2 "2021-12-09T08:30:53Z")

</div>

> Does anyone know if the save/load state works fine when the state pipeline includes a Transform filter?

It does.

Please share steps to reproduce the problem

---

<div class="post-metadata">

### Author: ![nurw](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/n/f6c823/32.png) [@nurw](https://discourse.paraview.org/u/nurw)
#### Post date: [December 9, 2021, 1:29pm UTC](https://discourse.paraview.org/t/load-state-error-with-transform-filter/8597/3 "2021-12-09T13:29:55Z")

</div>

-Load VTS file (3D structured mesh)  
-Apply Transform filter (assign Z-scale multiplier only of 1000)  
-Apply Calculator filter  
-Apply Tube filter  
-Apply AnnotateTime  
-Apply Text

---

<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 9, 2021, 1:41pm UTC](https://discourse.paraview.org/t/load-state-error-with-transform-filter/8597/4 "2021-12-09T13:41:19Z")

</div>

Tube requires a polydata input, which the calculator output is not.

---

<div class="post-metadata">

### Author: ![nurw](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/n/f6c823/32.png) [@nurw](https://discourse.paraview.org/u/nurw)
#### Post date: [December 9, 2021, 1:55pm UTC](https://discourse.paraview.org/t/load-state-error-with-transform-filter/8597/5 "2021-12-09T13:55:27Z")

</div>

That works, thank you! So, any filter that requires the polydata input should not be included while building the state pipeline? And, is there an easy lookup table that lists all the filters that require the polydata input?

---

<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 9, 2021, 1:57pm UTC](https://discourse.paraview.org/t/load-state-error-with-transform-filter/8597/6 "2021-12-09T13:57:42Z")

</div>

> [@nurw](#):
>
> any filter that requires the polydata input should not be included while building the state pipeline?

Not true, what is not working is incorrect pipeline setup, with or without state file.

However, the GUI literally prevents you to do use the wrong filter, how are you building your pipeline to work around that ?

> And, is there an easy lookup table that lists all the filters that require the polydata input?

Not really no, but once again, the GUI prevents you from doing wrong things.

---

<div class="post-metadata">

### Author: ![nurw](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/n/f6c823/32.png) [@nurw](https://discourse.paraview.org/u/nurw)
#### Post date: [December 9, 2021, 2:27pm UTC](https://discourse.paraview.org/t/load-state-error-with-transform-filter/8597/7 "2021-12-09T14:27:43Z")

</div>

Below is my pipeline. First, I opened the vts file manually. Then, I ran a macro to generate the remaining portion (like everything up to the “Arrow1”). Does it mean that I cannot include macros to build the state?

![3](https://discourse.paraview.org/uploads/default/original/2X/c/c8b0e8628aa06292e3723453c8ab14ce676bf9e4.png)

---

<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 9, 2021, 2:29pm UTC](https://discourse.paraview.org/t/load-state-error-with-transform-filter/8597/8 "2021-12-09T14:29:18Z")

</div>

> [@nurw](#):
>
> I ran a macro to generate the remaining portion (like everything up to the “Arrow1”)

Your macros is likely producing the invalide pipeline state. You can use macros, but you need to fix it.

---

<div class="post-metadata">

### Author: ![nurw](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/n/f6c823/32.png) [@nurw](https://discourse.paraview.org/u/nurw)
#### Post date: [December 9, 2021, 2:32pm UTC](https://discourse.paraview.org/t/load-state-error-with-transform-filter/8597/9 "2021-12-09T14:32:04Z")

</div>

Got it. What would be the advantage of using “load state” than running macros? I wonder if I can discuss this here on the same thread.

---

<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 9, 2021, 2:36pm UTC](https://discourse.paraview.org/t/load-state-error-with-transform-filter/8597/10 "2021-12-09T14:36:00Z")

</div>

Macros and actually very close to python state files, so in a sense, theyr are the same, however macros appears in the macros menus and can be applied generally on a active pipeline, while python state file generally setup a complete pipeline.

.pvsm state file however are XML based, so hard to manually edit and changes, but they are more resilient when sharing with a colleague for example.

more doc here: [8. Saving Results — ParaView Documentation 5.9.1 documentation](https://docs.paraview.org/en/latest/UsersGuide/savingResults.html)

---

<div class="post-metadata">

### Author: ![nurw](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/n/f6c823/32.png) [@nurw](https://discourse.paraview.org/u/nurw)
#### Post date: [December 9, 2021, 2:37pm UTC](https://discourse.paraview.org/t/load-state-error-with-transform-filter/8597/11 "2021-12-09T14:37:47Z")

</div>

Thanks a lot! Problem solved.
