dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #46120
Cant update Data element attribute using PATCH Web Api command in 2.22
Hi Devs,
I am trying to update one Data element attribute (name) using a patch update command , example below
"curl -X PATCH -d "{\"name\":\"New Data Element Name\"}" -H "Content-Type: application/json" -u xxxxxx:xxxxxx http://localhost:8080/api/dataElements/uidxxxxxxx/name”;
The command fails with the main error below
"Request processing failed; nested exception is org.hibernate.HibernateException: A collection with cascade="all-delete-orphan" was no longer referenced by the owning entity instance: org.hisp.dhis.dataelement.DataElement.attributeValues”
This command works in 2.21 and also tested OK in 2.24 , did something change in 2.22 making this fail?
Thanks!
Dapo Adejumo.