Program rule- Hide field not responding appropriately

Dear all,
I am working with version 2.30 build 20b9ccf.
Recently all the Hide fields program rules stopped working. I am not sure what might have triggered this or how to fix it.
So far, we have attempted recreating some of these rules (as they are many) but it is not working.

We are sure the rules are correct because it used to work correctly until yesterday and it still shows the right prompt when trying to hide a field that has been filled but the hide function does not work anymore.

We made some changes to the program during the weekend and are not sure what (if anything) might have triggered this.
This is the error I get from my browser:

TypeError: Cannot read property 'id' of undefined
    at dhis2.angular.services.js:3206
    at Object.r [as forEach] (angular.js:331)
    at Object.processRuleEffectsForEvent (dhis2.angular.services.js:3183)
    at Object.processRuleEffectAttribute (dhis2.angular.services.js:3279)
    at registration-controller.js:766
    at n.$broadcast (angular.js:14785)
    at dhis2.angular.services.js:2879
    at angular.js:13248
    at n.$eval (angular.js:14466)
    at n.$digest (angular.js:14282)

I am failing to move further since I am not familiar with this kind of errors.

Please any suggestions on how to troubleshoot or fix this would be greatly appreciated.
Thanks.

Best regards,
U’aa

1 Like

Hi @Uaa,

Sorry about this;

Kindly check out the sharing settings for this program and let us know if they are okay to rule this option out.

Best,
James.

1 Like

Dear @jomutsani

The sharing settings for the program and program stages are working fine. I think we can rule out that option.
Can you perhaps help me interpret the error message?

Thanks

Best regards,
U’aa

2 Likes

Hi @Uaa,
Try to replicate some of the program rules on https://play.dhis2.org/2.30
Could be an issue with the build.
Let us know if this works.

Thanks, Emma

2 Likes