Couldn't save program rule: DataElement is not linked to any ProgramStageDataElement

I have upgraded mu dhis 2 instance from v35 to v37. When trying to add an action to a program rule I get the following information.

Couldn’t save program rule: DataElement tuCkjZMdxS7 is not linked to any ProgramStageDataElement for program rule PSS

Hi @tawanda , you can try the following API to see which data element is not linked:
(you instanceURL)/api/dataElements/tuCkjZMdxS7

Then go to maintenance → program → choose your program, then check if the data element (tuCkjZMdxS7) is assigned to a stage. If not, it should be assigned. It may be assigned to the program but not to the stage which may cause this error.

1 Like