Cannot delete/clear boolean values in Data Entry app - v2.40.7.1 (500 errors)

Hi everyone,

I’m experiencing issues with deleting boolean data elements in the Data Entry app on versions 2.40.7 and 2.40.7.1. Wondering if anyone else has encountered this?

The Problem:

  • Can’t delete/clear boolean values (uncheck checkboxes) - getting 500 Internal Server Errors
  • Can’t delete comments linked to boolean fields
  • Checking boxes works fine, but unchecking/clearing them fails

Environment:

  • DHIS2 v2.40.7.1 (reproducible on play server)
  • Data Entry app
  • Browser console shows: POST /api/dataValues 500 (Internal Server Error) when trying to delete

Steps to reproduce:

  1. Go to Data Entry app
  2. Check a boolean field (this works)
  3. Try to uncheck/clear the same boolean field
  4. Check browser console - you’ll see the 500 errors
  5. Boolean value remains checked and cannot be cleared

Has anyone else seen this? Any workarounds while we wait for a fix?

I’m planning to file a JIRA ticket for this. Let me know if you need more details or if you’ve found any temporary solutions.

Thanks!

Jira ticket: Jira

Hi @diallotafsir52 . Sorry for the problems here and thanks for the report.

There has been a bug that has prevented you from unchecking the checkbox in the data entry app if you have a data element with value type True Only.

This was recently fixed (see DHIS2-19597), and the fix will be included in the v2.40.8, which should be released soon.

If you cannot wait until the release, you can also access the form through the Data Entry (Beta) app which does not have this bug.

1 Like

Hello @tzemp, thank you for the feedback and for identifying the root cause!

Do you know when version 2.40.8 will be released?

You’re right that we can use the Data Entry (Beta) app as a workaround, but unfortunately it doesn’t support the comments deletion functionality that we need for our boolean fields. Since we rely heavily on comments for our data collection process, we’ll need to wait for the 2.40.8 release.

Thanks again for the quick response and for pointing us to DHIS2-19597 - it’s helpful to know this is already being addressed.

@diallotafsir52 : 2.40.8 should be released very soon (within the month), but I do not know the exact date.

Could you elaborate on what you think is missing from Data Entry (Beta) in terms of comment functionality? You should be able to add/edit/remove a comment if you click on the “View details” button in the bottom part of the screen

Helo,
I mean with the Beta Data Entry App you can’t edit or delete comments linked to a boolean value. You will have the same error.

Got it. Thanks @diallotafsir52: the inability to add comments in Data Entry (Beta) was not something we had noticed. We will create a ticket for that and fix that. My guess is that this is a backend problem in which case it won’t be fixed before 2.40.9. If it’s a frontend problem, we can fix it sooner.

Sorry for the problems here, and thanks for reaching out.

Hi @diallotafsir52. I have looked a bit at the issue regarding comment saves, and the backend fix that was recently applied to allow updates of true only values in classic Data Entry app should also resolve the problem you’re having with updating comments in Data Entry (Beta). As such, I think the best option is to update when 2.40.9 is released.

1 Like

Hello, thank you for the feedback.