dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #51070
Fwd: WEB API Error in DHIS2.30
---------- Forwarded message ----------
From: mahdi asgari <mahdi.asgari@xxxxxxxxx>
Date: Thu, Apr 19, 2018 at 11:55 PM
Subject: WEB API Error in DHIS2.30
To: busoye@xxxxxxxxxxxxxx
Hi dear adebusoye
I am using dhis2 version 2.30, compiled from github (last version),
When i try to create trackedEntity with weeb api, i get the following error
It seem's TrackedEntity has been removed from TrackedEntityInstance class
how can i fix the problem?
ERROR:
{"httpStatus":"Internal Server Error","httpStatusCode":500,"
status":"ERROR","message":"Unrecognized field \"trackedEntity\" (class
org.hisp.dhis.dxf2.events.trackedentity.TrackedEntityInstance), not marked
as ignorable (14 known properties: \"trackedEntityInstance\",
\"lastUpdatedAtClient\", \"lastUpdated\", \"createdAtClient\",
\"trackedEntityType\", \"orgUnit\", \"inactive\", \"enrollments\",
\"featureType\", \"attributes\", \"deleted\", \"relationships\",
\"created\", \"coordinates\"])\n at [Source: {\"trackedEntityInstance\":
\"IKjF4BZg3hb\",\"trackedEntity\": \"nEenWmSyUEp\",\"orgUnit\":
\"iq6Pt6QzM4d\",\"trackedEntityType\": \"MCPQUTHX1Ze\",\"attributes\"
:[{\"attribute\":\"spFvx9FndA4\",\"value\":\"53\"},{\"attribute\":\"
w75KJ2mc4zz\",\"value\":\"????\"},{\"attribute\":\"
hqtiQfZ66yc\",\"value\":\"??????\"},{\"attribute\":\"
zDhUuAYrxNC\",\"value\":\"????\"},{\"attribute\":\"
AuPLng5hLbE\",\"value\":\"51961113\"},{\"attribute\":\"
EO4ms2Ju3nf\",\"value\":\"1\"},{\"attribute\":\"gHGyrwKPzej\
",\"value\":\"2013-09-17\"},{\"attribute\":\"P2cwLGskgxn\",\
"value\":\"123\"},{\"attribute\":\"Agywv2JGwuq\",\"
value\":\"\"}],\"enrollments\":[{\"orgUnit\": \"iq6Pt6QzM4d\",\"program\":
\"LaWt5AR1tfl\",\"enrollmentDate\": \"2013-09-17\",\"incidentDate\":
\"2013-09-17\"}]}; line: 1, column: 59] (through reference chain:
org.hisp.dhis.dxf2.events.trackedentity.TrackedEntityInstance[\"
trackedEntity\"])"}
JSON DATA:
{"trackedEntityInstance": "IKjF4BZg3hb","orgUnit":
"iq6Pt6QzM4d","trackedEntity":"lp7Kq6QzS4d","trackedEntityType":
"MCPQUTHX1Ze","attributes":[{"attribute":"spFvx9FndA4","
value":"53"},{"attribute":"w75KJ2mc4zz","value":"????"},{"
attribute":"hqtiQfZ66yc","value":"??????"},{"attribute":"
zDhUuAYrxNC","value":"????"},{"attribute":"AuPLng5hLbE","
value":"51961113"},{"attribute":"EO4ms2Ju3nf","value":"1"},{"
attribute":"gHGyrwKPzej","value":"2013-09-17"},{"attribute":"P2cwLGskgxn","
value":"123"},{"attribute":"Agywv2JGwuq","value":""}],"enrollments":[{"orgUnit":
"iq6Pt6QzM4d","program": "LaWt5AR1tfl","enrollmentDate":
"2013-09-17","incidentDate": "2013-09-17"}]}
thanks in advanced