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.
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@path.org 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.
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@gmail.com wrote:
Hi Kelly,
You cannot delete the data element because you already have data entered for it (specifically Tracker data).
On Mon, May 8, 2017 at 4:07 PM, Davis, Kelly kdavis@path.org 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.