← Back to team overview

dhis2-devs team mailing list archive

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


You must clear the hibernate cache, if you delete a data element directly
from the database.


In general, its better to use the API for such operations.


On Mon, Sep 12, 2016 at 1:11 PM, Aamer Mohammed <aamerm@xxxxxxxxxxxxxxxx>

> Hi Morten,
> We can use /api/dataElements to fetch the list of all data elements in
> system.
> [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.
> Thanks
> Aamer.
> _______________________________________________
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to     : dhis2-devs@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help   : https://help.launchpad.net/ListHelp

Jason P. Pickering
email: jason.p.pickering@xxxxxxxxx

PNG image

PNG image

PNG image

Follow ups