While editing the form2 form from patient dashboard, we are getting the below error.
After analysing the code, we see that it’s the issue with form field path that got generated for a specific control(here section control).
Whenever we load the form2 form from the consultation page, for some of the controls its generating invalid format of formFieldPath. While we load the form from consultation page and if we enter the obs for control id which has invalid formFieldPath, then this formFieldPath will get saved to database. While editing the form from display control then its throwing the error that shown as shown in the above screenshot . We are still trying to figure it out how it’s generating invalid formFieldPath.
Eg: Invalid FormFieldPath - Initial Medical Examination.2/80-/139-0
Valid FormFieldPath - Initial Medical Examination.2/8-0/139-0
And this is not happening every time we load the form. Its to intermittent. We see that recreating the from(by republishing, sometimes drop the section and add the section which had the problem) solving the issue.