← Back to team overview

dhis2-users team mailing list archive

Re: Failed to save data on Tracker Capture

 

Sorry if I misunderstood, do you mean this?


   1. {trackedEntityInstance: "QtFqVt2NZ6l", program: "i7udy8Ca0SQ",
   status: "ACTIVE",…}
      1. coordinate:{latitude: -2.96624, longitude: 115.2057}
         1. latitude:-2.96624
         2. longitude:115.2057
      2. enrollmentDate:"2015-10-01"
      3. incidentDate:"2017-01-13"
      4. orgUnit:"iKkGAHawI7H"
      5. program:"i7udy8Ca0SQ"
      6. status:"ACTIVE"
      7. trackedEntityInstance:"QtFqVt2NZ6l"



[image: Inline images 1]

[image: Inline images 2]

Any reason why the server is complaining for missing organisation unit?

Thank you.



--
Karin.

On 13 January 2017 at 16:06, Abyot Asalefew Gizaw <abyot@xxxxxxxxx> wrote:

> Hi Karina,
>
> Click on the POST request and see what payload was sent to the server. The
> server is complaining for missing organisation unit.
>
> --
> Abyot A. Gizaw.
> Senior Engineer, DHIS2
> University of Oslo
> http://www.dhis2.org
>
> On Fri, Jan 13, 2017 at 9:52 AM, Karina Dian Lestari <
> karinadnlstr@xxxxxxxxx> wrote:
>
>> Hi Abyot,
>>
>> It looked like when I first opened Tracker Capture menu. I see this red
>> response: GET http://localhost:8080/dhis/api
>> /userDataStore/gridColumns/trackerCaptureGridColumns 404 (). I clicked
>> the link and it gave me this: {"httpStatus":"Not
>> Found","httpStatusCode":404,"status":"ERROR","message":"The key
>> 'trackerCaptureGridColumns' was not found in the namespace 'gridColumns'."}
>>
>> [image: Inline images 1]
>>
>>
>> After I clicked 'save and continue', I get this red response: POST
>> http://localhost:8080/dhis/api/enrollments 409 () and it lead me to this
>> {"httpStatus":"Conflict","httpStatusCode":409,"status":"ERROR","message":"At
>> least one organisation unit must be specified"}
>>
>> [image: Inline images 2]
>>
>>
>> By attribute, do you mean tracked entity attribute? I only have 9 and all
>> of them are different
>> [image: Inline images 3]
>>
>>
>>
>> Thanks for your help.
>>
>>
>>
>> --
>> Karin.
>>
>> On 13 January 2017 at 15:09, Abyot Asalefew Gizaw <abyot@xxxxxxxxx>
>> wrote:
>>
>>> Hi,
>>>
>>> The log says saving enrollment has failed - see the 409 response from
>>> the POST request.
>>>
>>> Can you do it one more time with the network tab of your browser open?
>>> Copy whatever the server has returned for the failed response (the one in
>>> red) and send us. We will try fix. Most probably you have some attribute
>>> configurations that did go well. Do you have any attribute configured
>>> unique?
>>>
>>> --
>>> Abyot A. Gizaw.
>>> Senior Engineer, DHIS2
>>> University of Oslo
>>> http://www.dhis2.org
>>>
>>> On Fri, Jan 13, 2017 at 5:07 AM, Karina Dian Lestari <
>>> karinadnlstr@xxxxxxxxx> wrote:
>>>
>>>> Hi all,
>>>>
>>>> I am developing tracker capture to store individual data. I made 6
>>>> stages of the program, but couldn't even get pass though stage 1 because
>>>> everytime I click 'save and continue' it omit a message like this.
>>>>
>>>> [image: Inline images 1]
>>>>
>>>> This is on version 2.25 build revision 725d1c3.
>>>> Am I missing any step to use tracker capture?
>>>>
>>>> Kindly see attached file to see catalina and localhost log.
>>>>
>>>> Thank you.
>>>>
>>>> --
>>>> Karin.
>>>>
>>>> _______________________________________________
>>>> Mailing list: https://launchpad.net/~dhis2-users
>>>> Post to     : dhis2-users@xxxxxxxxxxxxxxxxxxx
>>>> Unsubscribe : https://launchpad.net/~dhis2-users
>>>> More help   : https://help.launchpad.net/ListHelp
>>>>
>>>>
>>>
>>
>

Follow ups

References