← Back to team overview

dhis2-devs team mailing list archive

Re: JS Errors in data entry

 

Yes it should be an option set just like the others, something like the
others "Thfz8125uPk-USfPOPAeN16":{"uid":"eUZ79clX7y1","v":1}"

However, perhaps there shouldn't be anything there and there is just a
comma too much, because the object in between is actually "null" or w/e.
But i'm not really sure what you should receive so i can't say much about
that. Perhaps you can check the optionSets that you expect to get with the
ones you actually get?

On Fri, Sep 25, 2015 at 1:10 PM, Jason Pickering <
jason.p.pickering@xxxxxxxxx> wrote:

> Yeah, i see it but not sure what that object should be. Is this related to
> option sets?
>
> On Fri, Sep 25, 2015 at 12:57 PM, Mark Polak <mark@xxxxxxxxxxxxxxx> wrote:
>
>> "optionSets": {
>> "Thfz8125uPk-USfPOPAeN16":{"uid":"eUZ79clX7y1","v":1} *, ,*"f1R88WLGXvs-USfPOPAeN16":{"uid":"M2dZRqmn8A7","v":1}
>>  },
>>
>> "indicatorFormulas": {
>>
>> Between those (red) commas there should be another object. As it
>> currently is that is not a valid JSON structure.
>>
>> On Fri, Sep 25, 2015 at 12:44 PM, Jason Pickering <
>> jason.p.pickering@xxxxxxxxx> wrote:
>>
>>> From the file, it looks like this
>>>
>>> "optionSets": {
>>> "Thfz8125uPk-USfPOPAeN16":{"uid":"eUZ79clX7y1","v":1} ,
>>> ,"f1R88WLGXvs-USfPOPAeN16":{"uid":"M2dZRqmn8A7","v":1}  },
>>>
>>> "indicatorFormulas": {
>>>
>>>
>>> Any ideas what might be causing that?
>>>
>>>
>>>
>>> On Fri, Sep 25, 2015 at 12:01 PM, Jason Pickering <
>>> jason.p.pickering@xxxxxxxxx> wrote:
>>>
>>>> I got this
>>>>
>>>> [Error: Parse error on line 11:
>>>> ...Z79clX7y1","v":1} , ,"f1R88WLGXvs-USfPOP
>>>> -----------------------^
>>>> Expecting 'STRING', got ',']
>>>>
>>>> On Fri, Sep 25, 2015 at 11:53 AM, Morten Olav Hansen <
>>>> mortenoh@xxxxxxxxx> wrote:
>>>>
>>>>> Try to manually run the getMedaData.action in data-entry, and then
>>>>> take that output to jsonlint.com
>>>>>
>>>>> Unexpected token u, means something was undefined..
>>>>>
>>>>> --
>>>>> Morten
>>>>>
>>>>> On Fri, Sep 25, 2015 at 4:49 PM, Jason Pickering <
>>>>> jason.p.pickering@xxxxxxxxx> wrote:
>>>>>
>>>>>> We are seeing an error in data entry, which is preventing all data
>>>>>> entry,so it is pretty critical.
>>>>>>
>>>>>> Uncaught SyntaxError: Unexpected token u
>>>>>>
>>>>>> Unknown revision of 2.18. I suspect it is a meta-data problem, but
>>>>>> not really sure how to pinpoint it?
>>>>>>
>>>>>> Any ideas?
>>>>>>
>>>>>> Regards,
>>>>>> Jason
>>>>>>
>>>>>> ​
>>>>>>
>>>>>> --
>>>>>> Jason P. Pickering
>>>>>> email: jason.p.pickering@xxxxxxxxx
>>>>>> tel:+46764147049
>>>>>>
>>>>>> _______________________________________________
>>>>>> Mailing list: https://launchpad.net/~dhis2-devs
>>>>>> Post to     : dhis2-devs@xxxxxxxxxxxxxxxxxxx
>>>>>> Unsubscribe : https://launchpad.net/~dhis2-devs
>>>>>> More help   : https://help.launchpad.net/ListHelp
>>>>>>
>>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Jason P. Pickering
>>>> email: jason.p.pickering@xxxxxxxxx
>>>> tel:+46764147049
>>>>
>>>
>>>
>>>
>>> --
>>> Jason P. Pickering
>>> email: jason.p.pickering@xxxxxxxxx
>>> tel:+46764147049
>>>
>>> _______________________________________________
>>> Mailing list: https://launchpad.net/~dhis2-devs
>>> Post to     : dhis2-devs@xxxxxxxxxxxxxxxxxxx
>>> Unsubscribe : https://launchpad.net/~dhis2-devs
>>> More help   : https://help.launchpad.net/ListHelp
>>>
>>>
>>
>
>
> --
> Jason P. Pickering
> email: jason.p.pickering@xxxxxxxxx
> tel:+46764147049
>

PNG image


Follow ups

References