# Save Annotation Error

**URL:** <https://support.prodi.gy/t/save-annotation-error/1232>\
**Category:** Uncategorized\
**Tags:** done\
**Created:** [February 21, 2019, 2:41pm UTC](https://support.prodi.gy/t/save-annotation-error/1232 "2019-02-21T14:41:10Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bazarov](https://avatars.discourse-cdn.com/v4/letter/b/5e9695/32.png) [@Bazarov](https://support.prodi.gy/u/Bazarov)\
**Post date:** [February 21, 2019, 2:41pm UTC](https://support.prodi.gy/t/save-annotation-error/1232/1 "2019-02-21T14:41:11Z")

</div>

Hi,

We are using prodigy to annotate some text for named-entity recognition. It is working great up till now except that the annotations are not saved to the dataset. We are using the latest version (1.7) and have instant-submit enabled. Everything looks fine till the page is refreshed when all progress is lost.

No errors are printed.

---

<div class="post-metadata">

**Author:** ![ines](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/ines/32/3_2.png) [@ines](https://support.prodi.gy/u/ines)\
**Post date:** [February 21, 2019, 2:46pm UTC](https://support.prodi.gy/t/save-annotation-error/1232/2 "2019-02-21T14:46:09Z")

</div>

Can you share some more details on the command you’re running, how you’ve set up your database etc.? And what do you see if you run the command with `PRODIGY_LOGGING=basic`? On each submission, you should see a log statement that 1 example was added to the database.

---

<div class="post-metadata">

**Author:** ![Bazarov](https://avatars.discourse-cdn.com/v4/letter/b/5e9695/32.png) [@Bazarov](https://support.prodi.gy/u/Bazarov)\
**Post date:** [February 22, 2019, 11:33am UTC](https://support.prodi.gy/t/save-annotation-error/1232/3 "2019-02-22T11:33:47Z")

</div>

Hi Ines.

Sorry for the late response.  
We get this error

’  
File “cython\_src/prodigy/core.pyx”, line 136, in prodigy.core.Controller.receive\_answers  
File “cython\_src/prodigy/models/textcat.pyx”, line 174, in prodigy.models.textcat.TextClassifier.update  
KeyError: ‘answer’

’

---

<div class="post-metadata">

**Author:** ![ines](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/ines/32/3_2.png) [@ines](https://support.prodi.gy/u/ines)\
**Post date:** [February 22, 2019, 5:49pm UTC](https://support.prodi.gy/t/save-annotation-error/1232/4 "2019-02-22T17:49:53Z")

</div>

This is pretty strange! It means that the data sent back from the app doesn’t have an added answer. Could you share more details on your workflow and the recipe you’re running? Are you using a custom recipe?

---

<div class="post-metadata">

**Author:** ![ines](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/ines/32/3_2.png) [@ines](https://support.prodi.gy/u/ines)\
**Post date:** [February 23, 2019, 12:12pm UTC](https://support.prodi.gy/t/save-annotation-error/1232/5 "2019-02-23T12:12:11Z")

</div>

Ok, I think I tracked this down to a problem with how the current task is updated with instant submit enabled, which could cause it to be sent back without an answer if it isn’t updated in time. Sorry about that– just building v1.7.1 with a fix that makes sure this never happens. The release should be up later today 🙂

**Edit:** Done!
