values are voided in mysql database when using xform to edit encounters

Hi everyone, I am using openmrs 2.2.1 with xforms 4.3.14. I am using xforms to enter and edit encounters but I have notice that when I open the form to edit encounter some of the previous fields/variable return empty. I have checked on mysql database and find out that they are in the database but they are voided. I want all the values entered previously to be displayed on the form when I open it in edit mode. I need help does anybody have an idea what could be the problem? This is how to form looks like when you open to edit it.

Here are the tomcat log files

Is this happening for all forms? Or just this one?

It is happening in almost all forms the difference is number of missing values in forms. There are some forms that are missing a few values and other are missing a lot of values.

When did this problem start happening?

It might have been there a little but as we currently frequently updating the forms and through a lot of editing of data through forms we have noticed it more.

Do you think you can create a new sample form with two or three fields and see if you can reproduce it?

I have try to reproduce it on the simple sample form. There is one variable the doesn’t return with value when you edit the xform as shown on the image.

Can you share a screenshot of the concept definition for that variable?

Here is the concept definition.

Do you get the same problem if you use a dropdown list instead of radio buttons?

On this sample form I have created I don’t get that problem on the textbox or even when I use the dropdown list.

Can you also share screenshots of the concept definitions for scheduled and unscheduled visits?

Does this problem happen when using Firefox?

Yes it happens when using firefox.

Can you create a ticket for it?

What happens when you put back all those coded answer options on the design surface, instead of only two? Does it still fail to load the data?

Yes it does not load the data. The actual form we are using that concept has all those options and it does load the data. We are using radio button on the form in production environment.

I was trying to recreate it here https://demo.openmrs.org/openmrs/ but I cannot add concepts on the form.

Can you share a screenshot of that portion of the form having all the radio buttons for visit type?

Do you mean this portion?