# Lost Holding Register Data every time I deploy project on Node-RED

**URL:** <https://discourse.nodered.org/t/lost-holding-register-data-every-time-i-deploy-project-on-node-red/65619>\
**Category:** General\
**Tags:** modbus\
**Created:** [26 July 2022 02:50 UTC](https://discourse.nodered.org/t/lost-holding-register-data-every-time-i-deploy-project-on-node-red/65619 "2022-07-26T02:50:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![SachinKumar-tech](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sachinkumar-tech/32/65219_2.png) [@SachinKumar-tech](https://discourse.nodered.org/u/SachinKumar-tech)\
**Post date:** [26 July 2022 02:50 UTC](https://discourse.nodered.org/t/lost-holding-register-data-every-time-i-deploy-project-on-node-red/65619/1 "2022-07-26T02:50:15Z")

</div>

I am working on MODBUS-Server Node And used one IP address to configure & Connect it via Master Device.  
Every time I deploy Project on Node-RED Server , I lost my Holding Register Data.

 ![Node-RED_Query](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/d/bd0d3bca70fbd10c68328a9768ad1db5a4a485c2.png)

---

<div class="post-metadata">

**Author:** ![HaroldPetersInskipp](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/haroldpetersinskipp/32/42319_2.png) [@HaroldPetersInskipp](https://discourse.nodered.org/u/HaroldPetersInskipp)\
**Post date:** [26 July 2022 03:28 UTC](https://discourse.nodered.org/t/lost-holding-register-data-every-time-i-deploy-project-on-node-red/65619/2 "2022-07-26T03:28:23Z")

</div>

Try setting it to only deploy modified nodes (click the little down arrow on the deploy button).

If that doesn't work, you may want to try saving the data in a context variable. This way, the data can persist in memory, or even a file.

---

<div class="post-metadata">

**Author:** ![SachinKumar-tech](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sachinkumar-tech/32/65219_2.png) [@SachinKumar-tech](https://discourse.nodered.org/u/SachinKumar-tech)\
**Post date:** [26 July 2022 04:12 UTC](https://discourse.nodered.org/t/lost-holding-register-data-every-time-i-deploy-project-on-node-red/65619/3 "2022-07-26T04:12:50Z")

</div>

I actually Tried that i.e, Deploy modified nodes but result doesn't change.  
I have to restart my Physical device only then It shows me Data Again.  
Actually I don't want to save data , I just want it whenever I deploy changes in project Like I am not even touching Modbus Server Node, it fetches me the data so that I play with that.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [24 September 2022 04:12 UTC](https://discourse.nodered.org/t/lost-holding-register-data-every-time-i-deploy-project-on-node-red/65619/4 "2022-09-24T04:12:52Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
