Re: [Dhis2-devs] WEB API Error in DHIS2.30

2018-04-23 Thread Abyot Asalefew Gizaw
Hi,

Since 2.29, *trackedEntity* is renamed to be *trackedEntityType*. This is
documented in our release note , please go
through it especially the upgrade notes. If you are upgrading from an old
version, you are supposed to run the upgrade script first.

--
Abyot A. Gizaw.
Senior Engineer, DHIS2
University of Oslo
http://www.dhis2.org

On Mon, Apr 23, 2018 at 2:15 PM, mahdi asgari 
wrote:

> I found the problem
> The dhis2 documents is about version 2.26 which the class
> TrackedEntityInstance has an attribute named TrackedEntity.
> I think an documentation process is required for the new versions.
> regards
>
> On Sat, Apr 21, 2018 at 6:01 PM, mahdi asgari 
> wrote:
>
>> thanks
>>
>> On Sat, Apr 21, 2018 at 11:10 AM, Edouard Lavaud <
>> edouard.lav...@gmail.com> wrote:
>>
>>> Hi Mahdi,
>>>
>>> I remember having diverse issues with this "trackedentitytype" when
>>> setting up my 2.29.
>>> If you see anything specific, do not hesitate to post an issue on the
>>> DHIS2 jira.
>>> But me I am just a community user trying to help out on what I know, I
>>> am not part of the DHIS2 team ;)
>>>
>>> Edouard
>>>
>>>
>>> On Sat, Apr 21, 2018, 06:20 mahdi asgari  wrote:
>>>
 Hi
 Dear edouard,
 By using TrackedEntityType the import was success fully done,but i
 can't see patient in the Tracker Capture application, because of
 trackedentity filed in trackedentityinstance is null in database, Please
 test web api 2.30 and make sure the consistency in tracked capture.
 regards

 On Fri, Apr 20, 2018 at 11:16 AM, Edouard Lavaud <
 edouard.lav...@gmail.com> wrote:

> Hi there,
>
> Starting from 2.29 the trackedEntity field has been renamed to
> trackedEntityType.
>
> Best,
>
> Edouard
>
> 2018-04-20 4:44 GMT+02:00 Ocaya Stephen :
>
>> Please note that 2.30 has not yet been officially released. But think
>> the developers will look into fixing this issue.
>>
>> regards
>>
>> On Thu, Apr 19, 2018 at 11:17 PM, Adebusoye Anifalaje <
>> bus...@baosystems.com> wrote:
>>
>>> Hi Mahdi,
>>> I am forwarding your request to the user list. This is the
>>> appropriate forum for asking these sort of questions.
>>>
>>> Best.
>>> Busoye.
>>>
>>> -- Forwarded message -
>>> From: mahdi asgari 
>>> Date: Thu, 19 Apr 2018 at 20:25
>>> Subject: WEB API Error in DHIS2.30
>>> To: 
>>>
>>>
>>> Hi dear adebusoye
>>>
>>> I am using dhis2 version 2.30, compiled from github (last version),
>>> When i try to create trackedEntity, i get the following error
>>> I seem's TrackedEntity has been removed from TrackedEntityInstance
>>> how i can fix the problem.
>>>
>>> ERROR:
>>> {"httpStatus":"Internal Server Error","httpStatusCode":500,"s
>>> tatus":"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.trac
>>> kedentity.TrackedEntityInstance[\"trackedEntity\"])"}
>>>
>>> JSON DATA:
>>> {"trackedEntityInstance": "IKjF4BZg3hb","orgUnit":
>>> "iq6Pt6QzM4d","trackedEntity":"lp7Kq6QzS4d","trackedEntityType":
>>> "MCPQUTHX1Ze","attributes":[{"attribute":"spFvx9FndA4","valu
>>> e":"53","attribute":"w75KJ2mc4zz","value":"","attribute"
>>> :"hqtiQfZ66yc","value":"??","attribute":"zDhUuAYrxNC","v
>>> 

Re: [Dhis2-devs] WEB API Error in DHIS2.30

2018-04-23 Thread mahdi asgari
I found the problem
The dhis2 documents is about version 2.26 which the class
TrackedEntityInstance has an attribute named TrackedEntity.
I think an documentation process is required for the new versions.
regards

On Sat, Apr 21, 2018 at 6:01 PM, mahdi asgari 
wrote:

> thanks
>
> On Sat, Apr 21, 2018 at 11:10 AM, Edouard Lavaud  > wrote:
>
>> Hi Mahdi,
>>
>> I remember having diverse issues with this "trackedentitytype" when
>> setting up my 2.29.
>> If you see anything specific, do not hesitate to post an issue on the
>> DHIS2 jira.
>> But me I am just a community user trying to help out on what I know, I am
>> not part of the DHIS2 team ;)
>>
>> Edouard
>>
>>
>> On Sat, Apr 21, 2018, 06:20 mahdi asgari  wrote:
>>
>>> Hi
>>> Dear edouard,
>>> By using TrackedEntityType the import was success fully done,but i can't
>>> see patient in the Tracker Capture application, because of trackedentity
>>> filed in trackedentityinstance is null in database, Please test web api
>>> 2.30 and make sure the consistency in tracked capture.
>>> regards
>>>
>>> On Fri, Apr 20, 2018 at 11:16 AM, Edouard Lavaud <
>>> edouard.lav...@gmail.com> wrote:
>>>
 Hi there,

 Starting from 2.29 the trackedEntity field has been renamed to
 trackedEntityType.

 Best,

 Edouard

 2018-04-20 4:44 GMT+02:00 Ocaya Stephen :

> Please note that 2.30 has not yet been officially released. But think
> the developers will look into fixing this issue.
>
> regards
>
> On Thu, Apr 19, 2018 at 11:17 PM, Adebusoye Anifalaje <
> bus...@baosystems.com> wrote:
>
>> Hi Mahdi,
>> I am forwarding your request to the user list. This is the
>> appropriate forum for asking these sort of questions.
>>
>> Best.
>> Busoye.
>>
>> -- Forwarded message -
>> From: mahdi asgari 
>> Date: Thu, 19 Apr 2018 at 20:25
>> Subject: WEB API Error in DHIS2.30
>> To: 
>>
>>
>> Hi dear adebusoye
>>
>> I am using dhis2 version 2.30, compiled from github (last version),
>> When i try to create trackedEntity, i get the following error
>> I seem's TrackedEntity has been removed from TrackedEntityInstance
>> how i can fix the problem.
>>
>> ERROR:
>> {"httpStatus":"Internal Server Error","httpStatusCode":500,"s
>> tatus":"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.trac
>> kedentity.TrackedEntityInstance[\"trackedEntity\"])"}
>>
>> JSON DATA:
>> {"trackedEntityInstance": "IKjF4BZg3hb","orgUnit":
>> "iq6Pt6QzM4d","trackedEntity":"lp7Kq6QzS4d","trackedEntityType":
>> "MCPQUTHX1Ze","attributes":[{"attribute":"spFvx9FndA4","valu
>> e":"53","attribute":"w75KJ2mc4zz","value":"","attribute"
>> :"hqtiQfZ66yc","value":"??","attribute":"zDhUuAYrxNC","
>> value":"","attribute":"AuPLng5hLbE","value":"
>> 51961113","attribute":"EO4ms2Ju3nf","value":"1","attr
>> ibute":"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
>> --
>> Forgive the typos. Using handheld device
>>
>> ___
>> Mailing list: https://launchpad.net/~dhis2-devs
>> Post 

Re: [Dhis2-devs] WEB API Error in DHIS2.30

2018-04-20 Thread mahdi asgari
Thanks for your reply


On Fri, Apr 20, 2018 at 11:16 AM, Edouard Lavaud 
wrote:

> Hi there,
>
> Starting from 2.29 the trackedEntity field has been renamed to
> trackedEntityType.
>
> Best,
>
> Edouard
>
> 2018-04-20 4:44 GMT+02:00 Ocaya Stephen :
>
>> Please note that 2.30 has not yet been officially released. But think the
>> developers will look into fixing this issue.
>>
>> regards
>>
>> On Thu, Apr 19, 2018 at 11:17 PM, Adebusoye Anifalaje <
>> bus...@baosystems.com> wrote:
>>
>>> Hi Mahdi,
>>> I am forwarding your request to the user list. This is the appropriate
>>> forum for asking these sort of questions.
>>>
>>> Best.
>>> Busoye.
>>>
>>> -- Forwarded message -
>>> From: mahdi asgari 
>>> Date: Thu, 19 Apr 2018 at 20:25
>>> Subject: WEB API Error in DHIS2.30
>>> To: 
>>>
>>>
>>> Hi dear adebusoye
>>>
>>> I am using dhis2 version 2.30, compiled from github (last version),
>>> When i try to create trackedEntity, i get the following error
>>> I seem's TrackedEntity has been removed from TrackedEntityInstance
>>> how i can fix the problem.
>>>
>>> ERROR:
>>> {"httpStatus":"Internal Server Error","httpStatusCode":500,"s
>>> tatus":"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\"},{\"attrib
>>> ute\":\"w75KJ2mc4zz\",\"value\":\"\"},{\"attribute\":\"h
>>> qtiQfZ66yc\",\"value\":\"??\"},{\"attribute\":\"zDhUuAYr
>>> xNC\",\"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.TrackedEntityInstanc
>>> e[\"trackedEntity\"])"}
>>>
>>> JSON DATA:
>>> {"trackedEntityInstance": "IKjF4BZg3hb","orgUnit":
>>> "iq6Pt6QzM4d","trackedEntity":"lp7Kq6QzS4d","trackedEntityType":
>>> "MCPQUTHX1Ze","attributes":[{"attribute":"spFvx9FndA4","valu
>>> e":"53","attribute":"w75KJ2mc4zz","value":"","attribute"
>>> :"hqtiQfZ66yc","value":"??","attribute":"zDhUuAYrxNC","v
>>> alue":"","attribute":"AuPLng5hLbE","value":"51961113","a
>>> ttribute":"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
>>> --
>>> Forgive the typos. Using handheld device
>>>
>>> ___
>>> Mailing list: https://launchpad.net/~dhis2-devs
>>> Post to : dhis2-devs@lists.launchpad.net
>>> Unsubscribe : https://launchpad.net/~dhis2-devs
>>> More help   : https://help.launchpad.net/ListHelp
>>>
>>>
>>
>>
>> --
>> --
>> *Stephen Ocaya*
>> Tel: +256 393 217 892 | Mob: +256774558980
>> www.stephocay.com
>> SkypeID: stephocay
>>
>> ___
>> Mailing list: https://launchpad.net/~dhis2-devs
>> Post to : dhis2-devs@lists.launchpad.net
>> Unsubscribe : https://launchpad.net/~dhis2-devs
>> More help   : https://help.launchpad.net/ListHelp
>>
>>
>
>
> --
> *Edouard Lavaud, *
>
>
>
> *MSc in Health Policy, Planning & FinancingMEng in
> TelecommunicationUniversity Diploma in ICT for Health*
> *Email:* edouard.lav...@gmail.com
> *Mobile:* 0033 6 7210 23 59
>
>
> ___
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to : dhis2-devs@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help   : https://help.launchpad.net/ListHelp
>
>
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] WEB API Error in DHIS2.30

2018-04-20 Thread Edouard Lavaud
Hi there,

Starting from 2.29 the trackedEntity field has been renamed to
trackedEntityType.

Best,

Edouard

2018-04-20 4:44 GMT+02:00 Ocaya Stephen :

> Please note that 2.30 has not yet been officially released. But think the
> developers will look into fixing this issue.
>
> regards
>
> On Thu, Apr 19, 2018 at 11:17 PM, Adebusoye Anifalaje <
> bus...@baosystems.com> wrote:
>
>> Hi Mahdi,
>> I am forwarding your request to the user list. This is the appropriate
>> forum for asking these sort of questions.
>>
>> Best.
>> Busoye.
>>
>> -- Forwarded message -
>> From: mahdi asgari 
>> Date: Thu, 19 Apr 2018 at 20:25
>> Subject: WEB API Error in DHIS2.30
>> To: 
>>
>>
>> Hi dear adebusoye
>>
>> I am using dhis2 version 2.30, compiled from github (last version),
>> When i try to create trackedEntity, i get the following error
>> I seem's TrackedEntity has been removed from TrackedEntityInstance
>> how i can fix the problem.
>>
>> ERROR:
>> {"httpStatus":"Internal Server Error","httpStatusCode":500,"s
>> tatus":"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.trac
>> kedentity.TrackedEntityInstance[\"trackedEntity\"])"}
>>
>> JSON DATA:
>> {"trackedEntityInstance": "IKjF4BZg3hb","orgUnit":
>> "iq6Pt6QzM4d","trackedEntity":"lp7Kq6QzS4d","trackedEntityType":
>> "MCPQUTHX1Ze","attributes":[{"attribute":"spFvx9FndA4","valu
>> e":"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
>> --
>> Forgive the typos. Using handheld device
>>
>> ___
>> Mailing list: https://launchpad.net/~dhis2-devs
>> Post to : dhis2-devs@lists.launchpad.net
>> Unsubscribe : https://launchpad.net/~dhis2-devs
>> More help   : https://help.launchpad.net/ListHelp
>>
>>
>
>
> --
> --
> *Stephen Ocaya*
> Tel: +256 393 217 892 | Mob: +256774558980
> www.stephocay.com
> SkypeID: stephocay
>
> ___
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to : dhis2-devs@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help   : https://help.launchpad.net/ListHelp
>
>


-- 
*Edouard Lavaud, *



*MSc in Health Policy, Planning & FinancingMEng in
TelecommunicationUniversity Diploma in ICT for Health*
*Email:* edouard.lav...@gmail.com
*Mobile:* 0033 6 7210 23 59
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] WEB API Error in DHIS2.30

2018-04-19 Thread Ocaya Stephen
Please note that 2.30 has not yet been officially released. But think the
developers will look into fixing this issue.

regards

On Thu, Apr 19, 2018 at 11:17 PM, Adebusoye Anifalaje  wrote:

> Hi Mahdi,
> I am forwarding your request to the user list. This is the appropriate
> forum for asking these sort of questions.
>
> Best.
> Busoye.
>
> -- Forwarded message -
> From: mahdi asgari 
> Date: Thu, 19 Apr 2018 at 20:25
> Subject: WEB API Error in DHIS2.30
> To: 
>
>
> Hi dear adebusoye
>
> I am using dhis2 version 2.30, compiled from github (last version),
> When i try to create trackedEntity, i get the following error
> I seem's TrackedEntity has been removed from TrackedEntityInstance
> how i can 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
> --
> Forgive the typos. Using handheld device
>
> ___
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to : dhis2-devs@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help   : https://help.launchpad.net/ListHelp
>
>


-- 
--
*Stephen Ocaya*
Tel: +256 393 217 892 | Mob: +256774558980
www.stephocay.com
SkypeID: stephocay
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] WEB API Error in DHIS2.30

2018-04-19 Thread Adebusoye Anifalaje
Hi Mahdi,
I am forwarding your request to the user list. This is the appropriate
forum for asking these sort of questions.

Best.
Busoye.

-- Forwarded message -
From: mahdi asgari 
Date: Thu, 19 Apr 2018 at 20:25
Subject: WEB API Error in DHIS2.30
To: 


Hi dear adebusoye

I am using dhis2 version 2.30, compiled from github (last version),
When i try to create trackedEntity, i get the following error
I seem's TrackedEntity has been removed from TrackedEntityInstance
how i can 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
-- 
Forgive the typos. Using handheld device
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp