# Error while accessing or saving values to the database

**URL:** <https://forum.odk-x.org/t/error-while-accessing-or-saving-values-to-the-database/428>\
**Category:** Support\
**Created:** [February 5, 2019, 10:37am UTC](https://forum.odk-x.org/t/error-while-accessing-or-saving-values-to-the-database/428 "2019-02-05T10:37:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nsthakuri](https://odkx.b-cdn.net/letter_avatar_proxy/v4/letter/n/82dd89/32.png) [@nsthakuri](https://forum.odk-x.org/u/nsthakuri)\
**Post date:** [February 5, 2019, 10:37am UTC](https://forum.odk-x.org/t/error-while-accessing-or-saving-values-to-the-database/428/1 "2019-02-05T10:37:25Z")

</div>

Hi All,  
ODK2.0:  
When adding or changing the variable in worksheet survey. It throws the following error: “error while accessing or saving values to the database”. Could you please help me there?

Thanks,  
Narendra

 ![11](https://odkx.b-cdn.net/uploads/default/original/1X/0aaa519ed719df9f9ddf3ef8cd2610c5e3d429de.jpeg)

---

<div class="post-metadata">

**Author:** ![elmps2018](https://odkx.b-cdn.net/user_avatar/forum.odk-x.org/elmps2018/32/105_2.png) [@elmps2018](https://forum.odk-x.org/u/elmps2018)\
**Post date:** [February 5, 2019, 3:41pm UTC](https://forum.odk-x.org/t/error-while-accessing-or-saving-values-to-the-database/428/2 "2019-02-05T15:41:49Z")

</div>

Hi @nsthakuri!

So when you change the survey you need to make sure to hit purge database, otherwise it will get very angry because maybe, for example, q1 used to be an integer and now it is a string… that is usually what this error message means. See: [Error while accessing or saving values to the database on ODK Survey - Development - ODK Forum](https://forum.getodk.org/t/error-while-accessing-or-saving-values-to-the-database-on-odk-survey/3297)

Best,  
Caroline

---

<div class="post-metadata">

**Author:** ![nsthakuri](https://odkx.b-cdn.net/letter_avatar_proxy/v4/letter/n/82dd89/32.png) [@nsthakuri](https://forum.odk-x.org/u/nsthakuri)\
**Post date:** [February 5, 2019, 3:47pm UTC](https://forum.odk-x.org/t/error-while-accessing-or-saving-values-to-the-database/428/3 "2019-02-05T15:47:33Z")

</div>

Dear @Caroline,  
Thanks for your response which is very helpful. Now it solved, relief.  
.Narendra
