Hello,
I’m experiencing a confusing issue when querying data from Program Indicators.
We’re using a query like this:
/api/analytics/dataValueSet.json?dimension=dx:[ProgramIndicatorUID]&dimension=pe:202302&dimension=ou:LEVEL-4&outputIdScheme=ATTRIBUTE:[ProgramIndicatorAttributeUID]
When you run this query, it executes once successfully, then if it is refreshed, returns an error:
“httpStatus”: “Bad Request”,
“httpStatusCode”: 400,
“status”: “ERROR”,
“message”: “Dimensional item cannot be null”
The error can be resolved by clearing the application cache.
I cannot replicate this elsewhere, but in general here are the steps with screenshots:
- Run the above query - it returns values
- Run the above query a second time - it returns the error:
- Clear the application cache, and you can again get the appropriate values.
Any insight on how to modify this query to prevent the cache issue would be appreciated.