# ConfigTree Data Rollback

**URL:** <https://forum.legato.io/t/configtree-data-rollback/3968>\
**Category:** Legato Application Framework\
**Created:** [December 25, 2018, 3:27pm UTC](https://forum.legato.io/t/configtree-data-rollback/3968 "2018-12-25T15:27:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lazzox](https://avatars.discourse-cdn.com/v4/letter/l/b9bd4f/32.png) [@lazzox](https://forum.legato.io/u/lazzox)\
**Post date:** [December 25, 2018, 3:27pm UTC](https://forum.legato.io/t/configtree-data-rollback/3968/1 "2018-12-25T15:27:48Z")

</div>

Hello,

I am writing an app that saves data to the config tree, data which needs to be persistent across reboots and power-offs. However any power cycle causes data written by the app to be deleted from the ConfigTree.  
I have marked the system as good after updating it with my application ( **update -g** ) but that didn’t solve the issue.

So I have a blank ConfigTree, I write data to it, I verify trough DevStudio that the data is written and then I cut the power supply to my device (WP76xx). After powering on the device I can see that my ConfigTree is blank.

I am wondering why is this happening? I commit all my transactions inbefore cutting the power supply.  
I don’t have devMode installed, but I wouldn’t like to have to install it to solve the issue.

Edit:

Putting config tree logger on info level actually gave me something to work with:

| treeDb.c ReadTextLiteral() 1928 | String literal, '\<sensitive\_data - 511 chars long string\>  
| treeDb.c InternalReadNode() 2199 | Unexpected EOF or bad token in file.  
| treeDb.c tdb\_ReadTreeNode() 3281 | Unexpected token in file.  
| treeDb.c LoadTree() 2511 | Could not parse configuration tree file: /legato/systems/current/config/myApp.paper.

Edit2:  
Solution was found here, wasn’t looking in this spot.

[https://github.com/legatoproject/legato-af/commit/24a3a9797f71010c3a59f5dbe9f2b01b670c8a07](https://github.com/legatoproject/legato-af/commit/24a3a9797f71010c3a59f5dbe9f2b01b670c8a07)

---

<div class="post-metadata">

**Author:** ![muralinagraj](https://avatars.discourse-cdn.com/v4/letter/m/45deac/32.png) [@muralinagraj](https://forum.legato.io/u/muralinagraj)\
**Post date:** [March 26, 2019, 2:10pm UTC](https://forum.legato.io/t/configtree-data-rollback/3968/2 "2019-03-26T14:10:09Z")

</div>

Thanks for the solution. Solution provided is good.

Regards,  
Muralidhara N
