Quantcast
Channel: DHIS2 Community - Latest topics
Viewing all articles
Browse latest Browse all 1850

Event filter does not work for Element linked to Option Set

$
0
0

We have an Event program, which has an Element named ‘Transaction Type’. The Element is linked with an Option Set of 6 options - the Id is numeric and the value is text. Data entry and display in Capture app works OK. When we try to FILTER the data in Capture app by the ‘Transaction Type’ field - it throws -

An unexpected error has occurred. Please contact your system administrator

and does not filter. Even we tried the same with Events API -

https://*****/api/36/events.json?ou=vQuQawxSYbc&program=pYGIlffbGeL&startDate=2024-03-01&endDate=2024-03-31&fields=dataValues[dataElement,value]&filter=B3YQBt31Fst:EQ:4

The last field B3YQBt31Fst:EQ:4 is the one what we are trying to achieve - ‘give me the events of a org unit between certain dates where transaction type is 4’. But, this does not work. Filter with other fields (which are not against option set works OK).

Anyone faced the same issue before?

3 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 1850

Trending Articles