I have created a program rule that is supposed to assign value to a program rule variable. But, when I try to save the program variable I get the following error Couldn't save program rule: DataElement or TrackedEntityAttribute cannot be null for program rule VIS_2_glass_SD.
I can’t reproduce this issue, but in your instance after selecting the ‘Calculated value’ I can’t see the field which appear to choose the ‘type’ as in the screenshot below:
G’day Orly,
Unsure if this will help, but I see there is no DE or TEI to assign the value to in the Pgm Rule Action, so maybe this is why it is throwing the ‘cannot be null’ error