# Keeping Original Ids in State Files

**URL:** https://discourse.paraview.org/t/keeping-original-ids-in-state-files/11940
**Category:** Development
**Created:** [April 20, 2023, 9:40pm UTC](https://discourse.paraview.org/t/keeping-original-ids-in-state-files/11940 "2023-04-20T21:40:03Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![HollowSun0](https://discourse.paraview.org/user_avatar/discourse.paraview.org/hollowsun0/32/431_2.png) [@HollowSun0](https://discourse.paraview.org/u/HollowSun0)
#### Post date: [April 20, 2023, 9:40pm UTC](https://discourse.paraview.org/t/keeping-original-ids-in-state-files/11940/1 "2023-04-20T21:40:03Z")

</div>

Hi all,

I’m currently in the process of investigating what needs to be done to preserve the original Ids of proxies and properties inside a state file.

In ParaView 5.9, loading a state file with [keepOriginalIds](https://gitlab.kitware.com/paraview/paraview/-/blob/aea455e3cc05ba6e81f94bc3a7ad2ae9812ce96d/Remoting/ServerManager/vtkSMSessionProxyManager.h#L422) set to `true` triggers an abort.

I was wondering if anyone tracks information about how to tackle this issue.

Thank you,  
Patrick

---

<div class="post-metadata">

### Author: ![utkarsh.ayachit](https://discourse.paraview.org/user_avatar/discourse.paraview.org/utkarsh.ayachit/32/39_2.png) [@utkarsh.ayachit](https://discourse.paraview.org/u/utkarsh.ayachit)
#### Post date: [April 21, 2023, 1:16pm UTC](https://discourse.paraview.org/t/keeping-original-ids-in-state-files/11940/2 "2023-04-21T13:16:27Z")

</div>

original ids are not restorable in the way you seem to think here. The `keepOriginalIds` is only meant for things like undo/redo, for example. What is your intent with preserving ids? Maybe there’s an alterative that could work for you.

---

<div class="post-metadata">

### Author: ![HollowSun0](https://discourse.paraview.org/user_avatar/discourse.paraview.org/hollowsun0/32/431_2.png) [@HollowSun0](https://discourse.paraview.org/u/HollowSun0)
#### Post date: [April 21, 2023, 2:17pm UTC](https://discourse.paraview.org/t/keeping-original-ids-in-state-files/11940/3 "2023-04-21T14:17:45Z")

</div>

The purpose of my issue is to commit state files without having the whole file change at every save.
