Context: I have a validation rule configured to check that:
Total deliveries (left side) <= Total births (right side)
In the data entry form; left side= 152, right side =160
In the validation rule message I’m getting the below message
Total deliveries (Cesarean sections, Instrumental vaginal deliveries, Spontaneous vaginal delivery, Unknown mode of delivery) by type must be LESS THAN OR EQUAL TO total births (live birth and stillbirths)
Total deliveries: Cesarean sections (General & spinal anesthesia, General anesthesia, Spinal anesthesia), Instrumental vaginal deliveries (Forceps, Vacuum extraction, Embryotomy), Spontaneous vaginal delivery, Unknown mode of delivery (152) <= Total births: Live births, Stillbirths (FHR absent on admission, FHR present on admission, Unknown FHR) (151)
Left side expression (152): #{fGvQmkETuK8} + #{L0TH6xonmn4} + #{TinmnNVgr3e} + #{NAwkAyppP7I} + #{Qho3gexDZdr} + #{DBYo09mhJWy} + #{tqZ8Cx6faf9} + #{avhJOYxTW29} + #{kKBl5oeVNPy}
Right side expression (151): #{KahiDLRSSEu} + #{SlrRESnRo1u} + #{SpxKrY1dAR5} + #{QO212R7y7QW}
Issue:
- On our cloud server: no validation errors are triggered despite values exactly matching what we have in the local.(data sync done and is successful)
- On our local server: a violation is reported, with the left side computing to 152 and the right side computing to 151 - which is unexpected since the value in the form is 160. We are basically wondering where did the 151 come from given we can’t see it anywhere in the system?
Questions:
- Could differences in Missing value strategy configuration between the two servers explain this behaviour?
- Could there be metadata or data differences between the two environments causing this discrepancy?
- Has anyone experienced validation rule results differing between a local and cloud DHIS2 instance for the same dataset and period?
DHIS2 version: 2.42.6
Data Entry App Version: 102.1.6
Steps already taken:
- Verified the validation rule expression configuration
- Compared left and right side totals manually
- Checked the Local DataBase for soft deleted Values - None exist
Thanks!
Allan
