← Back to team overview

dhis2-devs team mailing list archive

Re: Validation Showing Inconsistent Number of Violations


Update -- I think we figured out the cause of this. A few of the validation rules had the default category option combo specified in the right or left side validation formulas. After removing the default, it seems to be giving consistent results.

e.g. changed #{dataelementid.HllvX50cXC0})  to #{dataelementid} .

Still kind of puzzled about why this caused a problem, but it seems to be ok for now. :)

From: Smith, Rebecca A.
Sent: Tuesday, April 10, 2018 1:28 PM
To: DHIS Developers <dhis2-devs@xxxxxxxxxxxxxxxxxxx>
Subject: Validation Showing Inconsistent Number of Violations

Hi dev team,

I'm trying to figure out an issue where I'm getting an inconsistent number of violations on each validation run. For example, I might get 5 violations when I click "run validation" on a data entry form the first time, but if I click it again, I get only 2 violations, and then the next time I get 3 violations, and so on. It happens with both the "Run validation" button on the data entry form and the /validation/dataset API call.

We recently upgraded from 2.25 to 2.28, and found this issue on 2.28 builds 927ddf9 and fd8e419. I haven't been able to reproduce it with the existing validation rules on the DHIS2 Play demo site, so my best guess is that it might have something to do with the large number of data elements in our dataset (300+ data elements, or 2000+ individual data points if you include disaggregations) or the number of rules (4000+ in this system, 1000+ that apply to this dataset).

Has anyone else run into this? Is it a DHIS bug or something about this configuration? Any troubleshooting guidance would be extremely helpful!


I think it's easiest to see from the API call, so I'll include a set of screenshots below. I get a different number of errors each time I refresh it, even though nothing has changed on the data entry form.

  1.  First time, I got one Result:
  2.  Refreshed page - Now there are 5 Results:


  1.  Refreshed page - 2 results


  1.  And so on...

Becky Smith
Health Information Specialist
ICAP at Columbia University
Tel: 212.304.7109
Email: rs3524@xxxxxxxxxxxxxxxxx<mailto:rs3524@xxxxxxxxxxxxxxxxx>

PNG image

PNG image

PNG image

Follow ups