← Back to team overview

dhis2-devs team mailing list archive

Tracker capture. Error when writing a note.

 

Hello devs!

We just noticed an error in Tracker Capture App related to Notes (DHIS2
version 2.25). It can be reproduced in the demo server by doing the
following steps:

1) Register a new patient in one of the individual programs, in instance,
TB Program.

2) Add a note, such as in the image below (a dashboard's note, not the ones
you can add associated to the form).

[image: Inline image 1]
3) Press the button Back. Look for the same patient and enter again in the
dashboard of the program. Any tentative to complete the program instance
raises the following error:

[image: Inline image 2]

Unrecognized field "heading" (class org.hisp.dhis.dxf2.events.event.Note),
not marked as ignorable (3 known properties: "value", "storedBy",
"storedDate"]) at [Source: java.io.BufferedInputStream@7c7adc35; line: 1,
column: 420] (through reference chain:
org.hisp.dhis.dxf2.events.enrollment.Enrollment["notes"]->java.util.ArrayList[0]->org.hisp.dhis.dxf2.events.event.Note["heading"])

*Note:* This does not happen if the program instance is completed just
after adding the note (without pressing the back button). But in this case,
if you enter again in the patient dashboard and you reopen the program
instance, you will get the same error, preventing any modification.

This is normal behavior, since patient data is normally registered at
different times in tracker, and the note can be added at any point in the
process.

Can you have a look at that?

Many thanks in advance for your help!
Alejandro

PNG image

PNG image


Follow ups