← Back to team overview

dhis2-users team mailing list archive

Re: Unable to delete data elements and programs

 

Hi Davis,

In order to delete program (with registration) and dataElements, first you
need to delete all events and tracked entity instance belongs to that
program. In addition, you also need to remove the program out of the
userRole, then go to Data Administration module do maintenance task
(Permanently
remove soft deleted data values, Permanently remove soft deleted events).
After that, you need to delete program stages first, and finally delete
program (dataElements).

Hope this work for you.

Sincerely,

On Mon, May 8, 2017 at 9:14 PM, Knut Staring <knutst@xxxxxxxxx> wrote:

> Hi Kelly,
>
> You cannot delete the data element because you already have data entered
> for it (specifically Tracker data).
>
> Regards,
> Knut
>
> On Mon, May 8, 2017 at 4:07 PM, Davis, Kelly <kdavis@xxxxxxxx> wrote:
>
>> Hi all,
>>
>>
>>
>> I am trying to delete a data element but receive the following error
>> message: “Could not delete due to association with another object:
>> TracledEntityDataValue.” What does this mean? And how do I go about
>> deleting the data element given this message?
>>
>>
>>
>> Also, I’m trying to delete a program and receive the following error
>> message: Object not deleted because it is associated by objects of type.
>> Could not delete due to association with another object:
>> ProgramStageInstance.” I’m not sure how to go about handling this one,
>> either.
>>
>>
>>
>> Any help would be greatly appreciated!
>>
>>
>>
>> Best,
>>
>> Kelly
>>
>> _______________________________________________
>> Mailing list: https://launchpad.net/~dhis2-users
>> Post to     : dhis2-users@xxxxxxxxxxxxxxxxxxx
>> Unsubscribe : https://launchpad.net/~dhis2-users
>> More help   : https://help.launchpad.net/ListHelp
>>
>>
>
>
> --
> Knut Staring
> Dept. of Informatics, University of Oslo
> Norway: +4791880522
> Skype: knutstar
> http://dhis2.org
>
> _______________________________________________
> Mailing list: https://launchpad.net/~dhis2-users
> Post to     : dhis2-users@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dhis2-users
> More help   : https://help.launchpad.net/ListHelp
>
>


-- 
*Em Le Hong*
DHIS2 Implementation| *HISP Vietnam *
em.hispvietnam@xxxxxxxxx | *Skype:* em.hispvietnam@xxxxxxxxx

References