Program Rules work in 2.36 but fail in 2.38

Hi guys,

Just in case, if you have solution about this program rules issues on 2.38.2 but works fine in 2.36.12 :
OptionSet configuration
OptionSet_configuration

Data Element configuration :

Program Rule configuration :

Action
Assign value

Program rule variable to assign to
#{PROG_Test_avg}

Expression
(d2:zing(#{PROG_Test1}) +
d2:zing(#{PROG_Test2}))/(d2:oizp(#{PROG_Test1}) +
d2:oizp(#{PROG_Test2}))

Result in 2.36.12 :

Result in 2.38.2 :

Thanks for your help

Hasina

1 Like

Thank you for your detailed post with the screenshots! Sorry for taking this long to respond.

I’m triaging this to @tracker-programRules and if turns out a bug, we can create a Jira bug issue.

1 Like

Hello @haramas,

Turns out the oizp-function is faulty. Thanks for bringing attention to this! I will create a Jira bug issue for it and have it resolved shortly.

2 Likes

Hi @haramas ,

I believe if you could upgrade to the latest DHiS2 version of 2.38 which is: 2.38.1.1 that will solve your issue…
More release notes and hotfixes are described at the below link:

Best regards,

1 Like

Hi @ayman.tuffaha,

Thanks for your response. As I mentioned before, I tried it with the 2.38.2.1 and didn’t work.

Best

1 Like

Thanks @haramas for pointing this out!

Here’s the Jira ticket: [DHIS2-14352] - Jira (Thanks @superskip!)