# Error when someone try to edit an patient HTML form

**URL:** <https://talk.openmrs.org/t/error-when-someone-try-to-edit-an-patient-html-form/28026>\
**Category:** Ask OpenMRS\
**Tags:** html-form-entry, htmlform\
**Created:** [April 18, 2020, 4:44pm UTC](https://talk.openmrs.org/t/error-when-someone-try-to-edit-an-patient-html-form/28026 "2020-04-18T16:44:14Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![elkinleon](https://talk.openmrs.org/user_avatar/talk.openmrs.org/elkinleon/32/8693_2.png) [@elkinleon](https://talk.openmrs.org/u/elkinleon)\
**Post date:** [April 18, 2020, 4:44pm UTC](https://talk.openmrs.org/t/error-when-someone-try-to-edit-an-patient-html-form/28026/1 "2020-04-18T16:44:14Z")

</div>

Reference Application 2.10

Hi, its me again.

Last Sunday i updated my OpenMRS Reference application and modules, [with some consecuences,](https://talk.openmrs.org/t/update-openmrs-completely-damaged-my-personal-concept-dictionary/27932/6) another error that i bring to you today is this:

When i (Admin with full privileges), or some coworker (user with high privileges), try to edit some old form with patient info, and save changes, this error comes out: ![Captura](https://talk.openmrs.org/uploads/default/original/2X/6/60ae48bf3ebecc8b932bde5e39d61bcecabbd713.png)

And the changes are not saving, but more important, the old text deletes too! I find that info on the OBS table on my SQL, and that info was voided with the voided\_reason: htmlformentry (!??!?)

So, i find the log and find the exact time that i try to edit some past visit form, and i found this:

```
ERROR - FragmentActionController.handlePath(162) |2020-04-18 11:15:16,648| error
org.openmrs.ui.framework.UiFrameworkException: Error invoking fragment action public org.openmrs.ui.framework.SimpleObject org.openmrs.module.htmlformentryui.fragment.controller.htmlform.EnterHtmlFormFragmentController.submit(org.openmrs.module.appui.UiSessionContext,org.openmrs.Patient,org.openmrs.module.htmlformentry.HtmlForm,org.openmrs.Encounter,org.openmrs.Visit,java.lang.Boolean,java.lang.String,org.openmrs.module.emrapi.adt.AdtService,org.openmrs.module.appframework.feature.FeatureToggleProperties,org.openmrs.ui.framework.UiUtils,javax.servlet.http.HttpServletRequest) throws java.lang.Exception

```

So I ask again for your help, in your infinite wisdom, to know what is happening, because the truth is that I do not understand this error.

Thank you!

[Full log from my last tomcat start.](https://pastebin.com/ZqsAgSen)

---

<div class="post-metadata">

**Author:** ![dkayiwa](https://talk.openmrs.org/user_avatar/talk.openmrs.org/dkayiwa/32/179_2.png) [@dkayiwa](https://talk.openmrs.org/u/dkayiwa)\
**Post date:** [April 18, 2020, 6:34pm UTC](https://talk.openmrs.org/t/error-when-someone-try-to-edit-an-patient-html-form/28026/2 "2020-04-18T18:34:33Z")

</div>

> [@elkinleon](#):
>
> Full log from my last tomcat start.

Which version of the OpenMRS platform are you running? Can you also share via [pastebin.com](http://pastebin.com), your equivalent of this [Login](https://demo.openmrs.org/openmrs/admin/maintenance/systemInfo.htm) under `Module Information`?

---

<div class="post-metadata">

**Author:** ![elkinleon](https://talk.openmrs.org/user_avatar/talk.openmrs.org/elkinleon/32/8693_2.png) [@elkinleon](https://talk.openmrs.org/u/elkinleon)\
**Post date:** [April 18, 2020, 6:40pm UTC](https://talk.openmrs.org/t/error-when-someone-try-to-edit-an-patient-html-form/28026/3 "2020-04-18T18:40:31Z")

</div>

Yep, thanks. [There is](https://pastebin.com/zCEiST2P)

---

<div class="post-metadata">

**Author:** ![dkayiwa](https://talk.openmrs.org/user_avatar/talk.openmrs.org/dkayiwa/32/179_2.png) [@dkayiwa](https://talk.openmrs.org/u/dkayiwa)\
**Post date:** [April 18, 2020, 6:47pm UTC](https://talk.openmrs.org/t/error-when-someone-try-to-edit-an-patient-html-form/28026/4 "2020-04-18T18:47:59Z")

</div>

Do you get the same problem if you also upgrade your openmrs platform version to 2.3.0 as used by the reference application 2.10

---

<div class="post-metadata">

**Author:** ![elkinleon](https://talk.openmrs.org/user_avatar/talk.openmrs.org/elkinleon/32/8693_2.png) [@elkinleon](https://talk.openmrs.org/u/elkinleon)\
**Post date:** [April 18, 2020, 6:51pm UTC](https://talk.openmrs.org/t/error-when-someone-try-to-edit-an-patient-html-form/28026/5 "2020-04-18T18:51:33Z")

</div>

Well, let me try upgrading the platform version

---

<div class="post-metadata">

**Author:** ![ningosi](https://talk.openmrs.org/user_avatar/talk.openmrs.org/ningosi/32/8060_2.png) [@ningosi](https://talk.openmrs.org/u/ningosi)\
**Post date:** [April 20, 2020, 6:54am UTC](https://talk.openmrs.org/t/error-when-someone-try-to-edit-an-patient-html-form/28026/6 "2020-04-20T06:54:39Z")

</div>

> [@elkinleon](#):
>
> And

Super users are NOT always providers, You might need to be a provider(provider checkbox checked and provider Identifier added) to be able to add/edit encounters

---

<div class="post-metadata">

**Author:** ![elkinleon](https://talk.openmrs.org/user_avatar/talk.openmrs.org/elkinleon/32/8693_2.png) [@elkinleon](https://talk.openmrs.org/u/elkinleon)\
**Post date:** [May 18, 2020, 11:49am UTC](https://talk.openmrs.org/t/error-when-someone-try-to-edit-an-patient-html-form/28026/7 "2020-05-18T11:49:09Z")

</div>

thanks to all for your help, as always. For some reason (probably for one of many changes that i made) the encounter have a location on the SQL table, but the obs SQL table with the data of that form not have the location and, for that reason, my coworkers can’t edit the HTML form 🤦‍♂️

problem solved, thanks for your patience!
