Data Entry for capture app not saving for some users

Good afternoon,

A few of our users are experiencing an issue where their event data is not saved after clicking “Save and Add New” or “Save and Exit.” In some cases, users enter clients’ data, but some of the records are not reflected in the capture app’s listing.

Re-entering the data often does not resolve the issue, although in some instances, using a different account allows the data to be saved successfully. Additionally, some records fail to save after edits are made, and users receive an error message stating that the data cannot be saved.

1 Like

Dear @Collin.Dosunmu,

Thank you for reporting this issue. It is an important one to fix to avoid loss of data and additional work for your users.

However, we need more information to be able to help discern why saving and editing is not working. If users are facing this issue, they should send the error messages that are showing in the developer tools in their browser after an edit/save has failed. To do that they can do the following:

  • Open the developer tools: Right-click anywhere on the webpage and choose “Inspect” (or press F12 on Windows / Cmd + Option + I on Mac).
  • Go to the Network tab: Click the tab labeled “Network” at the top of the panel that appears.
  • Try saving/editing the event: This way the Network tab starts recording activity.
  • Look for errors: Any item shown in red has failed. Click on it to see details about what went wrong. You might have to expand the messages to drill down to the error.
  • Check the Console tab too: Click “Console” in the same panel. Any error messages will appear there in red, often with a short description of the problem.

This is the kind of info we need to be able to debug what is happening, whether it is a configuration isuse, bug, etc.

Thanks so much!
Karoline
DHIS2 Product Manager

1 Like

Hi @Collin.Dosunmu

Thank you for posting about this issue! Have you been able to get the logs from the users for this issue as suggested by Karoline above? Please share them so we can check what the issue is.

I am sharing a video of the developer tools captured when editing a clients record and the record did not save.

One of the links is showing the Network tab with no errors, while the other shows the Console tab with errors. The error details say some options are missing, but those were removed from this section of the form. We used to collect day, month, and year of birth separately, but now it’s just a single date-of-birth field.

1 Like

Hi @Collin.Dosunmu

Thank you for your patience! I have some follow-up points/questions please:

  1. What is the version of the DHIS2 instance you are using?

  2. What is the version of the Capture app you are using? Did you please try to update to the latest version of the app (it’s currently: v105.13.5)?

  3. Would you kindly go to Data Administration app, Maintenance view → Clear application cache - reload apps? And then after that could you please try again to test in your browser Guest mode? Using Guest mode ensures it’s not a cache issue.

You mentioned several scenarios:

  1. Re-entering the data often does not resolve the issue (using different accounts allows the data to be saved): could you compare between the accounts that can save and accounts that can’t? Most importantly the sharing settings, roles/authorities/groups, and OUs assigned.

I assume the recording of the error is after you click on ‘save’? When you’re recording for the issue, you’d have to open the Network tab and then reproduce the steps (such as clicking ‘save’).

Unfortunately, when you took a screenshot of the Network tab, it was on ‘js’ filter but we actually need to look into the ‘Fetch/XHR’ filter:


No need for a video recordings, you could wait until all the Fetch/XHR are loaded and then select the requests under Fetch/XHR and take a screenshot. You could select on the red requests that have failed and take a screenshots as well of the ‘entire Fetch/XHR (Request path, Payload, Response’. It’s okay if you blur the main domain please.

So at first you used an option set to collect day/month/year (or a data element)? Then you delete the option set (or data element) and want to edit those records that used the option set? If you could clarify the before and after this error started to appear it might bring more light into the issue.

Thanks!

Thanks @Karoline and @Gassim. I used one of your suggestions and went to the network tab, then looked at the response and found an error with a program rule. I checked the program rule and noticed the assignment to a data element was a comparison with two other data elements, so the result would have been a true or false. I did some checks, and I also found out that boolean values for assignment in program rules need to be enclosed within single quotes. I have tried that solution. So far i have not received any response that the data is not saved or the records are not saved after making edits. I am still in contact with the users to ensure that the problem is now resolved. I am using DHIS2 version 2.40.10 and the capture app is 105.13.1