← Back to team overview

dhis2-devs team mailing list archive

Issue with /api/dataElements after deleting data element from database


Hi Morten,

We can use /api/dataElements to fetch the list of all data elements in
[image: Inline image 2]

After deleting a data element(say DE1) from database directly and calling
the api again, the api is still showing the old list of data elements. We
verified this in separate browsers, clearing browser cache and incognito
mode of browser. This is same behavior when we check directly from
maintenance app as well.
[image: Inline image 1]

If any new data element(say DE3) is added and the api is called now, the
api shows the proper list of data elements.
[image: Inline image 3]

This is tested on latest version of 2.24. Any thoughts on this issue.


PNG image

PNG image

PNG image

Follow ups