Could not delete due to association with another object: DataValue

I am trying to delete a data element that I believe to be empty (we are still building the data elements for our implementation). After I confirm deletion, I get a message saying “Could not delete due to association with another object: DataValue”

Has anyone seen this or know a way around it?

Thanks,
Andy

1 Like

@andyw
Yes this happens a lot.
The work around is to try and delete data element from postgres itself.
This way, it will give exactly what constratints and associations are existent in order to successfully delete.

Cheers,
Emma

1 Like

Thank you for your reply, much appreciated. Good to know it is common.

Andy

1 Like