SyntaxError: missing ) after argument list

Hi Clara,
I’m using https://play.dhis2.org/2.37.4/dhis-web-maintenance/index.html#/edit/indicatorSection/programIndicator/add and selected the child program. The data element I used is MCH Infant Weight (g) from the Program Stage Baby Postnatal.
Here’s the expression and it’s being validated as valid:

d2:condition('d2:countIfValue(#{ZzYYXq4fJie.GQY2lXrypjO},3)+d2:countIfValue(#{ZzYYXq4fJie.GQY2lXrypjO},3) > 3',0,1)

I guess this depends on the value type of the data element. When using d2:countIfValue(,value) the value should be the same data type as the DE.

I tried to use the expression you shared above (thanks to you for showing it on play) and it worked when I removed the string type from the value in d2:countIfValue:

d2:condition('d2:countIfValue(#{dBwrot7S420.sWoqcoByYmD},1)+d2:countIfValue(#{dBwrot7S420.sWoqcoByYmD},1) >= "2"', 0,1)

If it still doesn’t work please first try to clear the browser cache using the Browser Cache Cleaner app and the app cache using Data Administration app → Maintenance ‘Clear Application Cache’ & ‘Reload apps’ then try again. To be 100% sure you’re not facing a cache issue, try a clean profile in your browser or a different browser and better if in incognito/private mode.

Hope this helps! :+1:

1 Like