# Persistent data not being saved

**URL:** https://discourse.nodered.org/t/persistent-data-not-being-saved/5680
**Category:** General
**Created:** [11 December 2018 15:12 UTC](https://discourse.nodered.org/t/persistent-data-not-being-saved/5680 "2018-12-11T15:12:46Z")
**Posts on this page:** 1
**Showing post:** 13

<div class="post-metadata">

### Author: ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)
#### Post date: [12 December 2018 10:55 UTC](https://discourse.nodered.org/t/persistent-data-not-being-saved/5680/13 "2018-12-12T10:55:36Z")

</div>

I just verified this (in OSX)

1. in terminal, start NR
2. create a simple flow (attached below) - an inject to two change nodes - each change node to a seperate debug node
3. set one change node to use a flow variable the other uses a global variable.
4. deploy and press the inject and use the 'context data' to examine the contents.
5. as soon as you see the timestamp in the context data, press the inject again and then swap to the terminal and press CTRL-C

If you go edit .node-red/context/global/flobal.json you will see the contents which you can compare against the debug. Here is what I see:

 ![50%20AM](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/4/4c8e7217b595ef9d8d9bfb9939990e46f2559383.png)

![26%20AM](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/1/1aa0596618ff3d727ffddde96f1659ec73c84491.png)

HERE SI THE FLOW:

```auto
[{"id":"78088df5.2fd3b4","type":"inject","z":"488e1c5.d552c64","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":140,"y":200,"wires":[["54316793.93ec58","ecf6671d.852d8"]]},{"id":"54316793.93ec58","type":"change","z":"488e1c5.d552c64","name":"","rules":[{"t":"set","p":"timestamp","pt":"global","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":400,"y":180,"wires":[["38182ee9.bf1872"]]},{"id":"ecf6671d.852d8","type":"change","z":"488e1c5.d552c64","name":"","rules":[{"t":"set","p":"timestamp","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":390,"y":240,"wires":[["35e6ac92.ee3d14"]]},{"id":"38182ee9.bf1872","type":"debug","z":"488e1c5.d552c64","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":680,"y":140,"wires":[]},{"id":"35e6ac92.ee3d14","type":"debug","z":"488e1c5.d552c64","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":670,"y":260,"wires":[]}]

```

---

_[View the full topic](https://discourse.nodered.org/t/persistent-data-not-being-saved/5680)._
