# Error While Marking Patient Deceased

**URL:** <https://talk.openmrs.org/t/error-while-marking-patient-deceased/28826>\
**Category:** Development\
**Created:** [June 3, 2020, 5:18pm UTC](https://talk.openmrs.org/t/error-while-marking-patient-deceased/28826 "2020-06-03T17:18:25Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![rishabh997](https://talk.openmrs.org/user_avatar/talk.openmrs.org/rishabh997/32/11441_2.png) [@rishabh997](https://talk.openmrs.org/u/rishabh997)\
**Post date:** [June 9, 2020, 7:00pm UTC](https://talk.openmrs.org/t/error-while-marking-patient-deceased/28826/7 "2020-06-09T19:00:11Z")

</div>

I was using causeOfDeathNonCoded variable to mark patient dead but I am getting following response from server…

**Response I sent:**

{ “identifiers”: [{ “identifier”: “100J19” }], “person”: { “addresses”: [{ “address1”: “kamue”, “cityVillage”: “shs”, “country”: “India”, “postalCode”: “kansk”, “preferred”: true, “stateProvince”: “shsa” }], “birthdate”: “2020-06-01”, “birthdateEstimated”: false, **"causeOfDeathNonCoded": “Eating BANANA Maaaannnn”,****"dead": true,** “gender”: “M”, “names”: [{ “familyName”: “mishra”, “givenName”: “myself” }] } }

**The response I Received:** { “error”: { “message”: “[Some properties are not allowed to be set: causeOfDeathNonCoded]”, “code”: “org.openmrs.module.webservices.rest.web.resource.impl.BaseDelegatingResource:690”, “detail”: "org.openmrs.module.webservices.rest.web.response.ConversionException: Some properties are not allowed to be set: causeOfDeathNonCoded\n\tat org.openmrs.module.webservices.rest.web.resource.impl.BaseDelegatingResource.setConvertedProperties(BaseDelegatingResource.java:690)\n\tat org.openmrs.module.webservices.rest.web.v1\_0.resource.openmrs1\_8.PatientResource1\_8.getPatientForUpdate(PatientResource1\_8.java:351)\n\tat org.openmrs.module.webservices.rest.web.v1\_0.resource.openmrs1\_8.PatientResource1\_8.update(PatientResource1\_8.java:341)\n\tat org.openmrs.module.webservices.rest.web.v1\_0.controller.MainResourceController.update(MainResourceController.java:134)\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n\tat java.lang.reflect.Method.invoke(Method.java:498)\n\tat org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:177)\n\tat org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:446)\n\tat org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:434)\n\tat org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:943)\n\tat org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:877)\n\tat org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:966)\n\tat org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:868)\n\tat javax.servlet.http.HttpServlet.service(HttpServlet.java:650)\n\tat org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:842)\n\tat javax.servlet.http.HttpServlet.service(HttpServlet.java:731)\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)\n\tat org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.jav

Can you help me here, please cc: @dkayiwa @burke @gcliff @ibacher

---

_[View the full topic](https://talk.openmrs.org/t/error-while-marking-patient-deceased/28826)._
