[Dhis2-users] [Dhis2-devs]Error while deleting a data element

2018-06-06 Thread Preeti Ajgaonkar
Hi, I am receiving a *504-Gateway-Timeout* exception whenever I try to delete any of the data elements in DHIS 2.27. The DELETE https://hmis-qa.ehealthunit.org/api/27/dataElements/a6a1a84029f call runs for a long time and finally fails with the above error in console and '*undefined was not delete

Re: [Dhis2-users] [Dhis2-devs]Error while deleting a data element

2018-06-06 Thread Knut Staring
I don't know what the issue would be, but have you checked that there is nothing in the datavalue table with this dataelementid? Knut On Wed, Jun 6, 2018 at 12:14 PM Preeti Ajgaonkar wrote: > Hi, > > I am receiving a *504-Gateway-Timeout* exception whenever I try to delete > any of the data ele

Re: [Dhis2-users] [Dhis2-devs]Error while deleting a data element

2018-06-06 Thread Preeti Ajgaonkar
Hey Knut, this is a Tracker type data element, it does not have any rows in datavalue table. On Wed, Jun 6, 2018 at 3:45 PM, Knut Staring wrote: > I don't know what the issue would be, but have you checked that there is > nothing in the datavalue table with this dataelementid? > > Knut > > On We

Re: [Dhis2-users] [Dhis2-devs]Error while deleting a data element

2018-06-06 Thread Nayeem Al Mifthah
Dear Preeti Tracker data values are in separate table. Could you please- - Check that this data element is not assigned in any program or program stage - Tracker data values are stored in separate table named tracked entity data value please check that table - Check audit tables for

Re: [Dhis2-users] [Dhis2-devs]Error while deleting a data element

2018-06-07 Thread Preeti Ajgaonkar
Hi Nayeem Thank you for your suggestion. The association of data element from the programs and program stages was removed. Removing foreign key references from trackedentitydataelementdimension, dataelementtranslations, dataelementattributevaluestables helped in deleting the data element. On Thu