dhis2-users team mailing list archive
-
dhis2-users team
-
Mailing list archive
-
Message #09052
Re: Cannot load OrgUnits or DataSet in Data Entry
Hi Laura,
As Olav says we have seen this a few different times, under different
circumstances. The original message was here
https://lists.launchpad.net/dhis2-devs/msg40182.html
Unfortunately, yours truly ends the thread with "I fixed it,but will detail
the problem when I get back"...and I never say actually what the problem
was and I cannot recall the exact fix. I am pretty sure in this case it was
related to an option set which was assigned to a data element, but the
option set had no members, which caused this error.
I recall another instance where an orgunit had a control character (new
line) which caused the same error.
So, as Morten says, it is likely a bad piece of metadata somewhere which
will need to be tracked down using JSONLint to determine exactly what is
causing the error.
Regards,
Jason
On Thu, Jan 14, 2016 at 7:29 PM, Olav Poppe <olav.poppe@xxxxxx> wrote:
> Hi, I’ve seen this a couple of times before, and if memory serves me right
> it was caused by invalid indicator formulas in those instances.
>
> I guess the thread you refer to is the one copied below.
>
> Regards Olav
>
> 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
>>>
>>>
>>
>
> 14. jan. 2016 kl. 18.02 skrev Lars Helge Øverland <larshelge@xxxxxxxxx>:
>
> Okay. Could you simply try to delete cache properly, close the browser,
> log in and try again?
>
> https://www.dhis2.org/tutorials/how-to-really-clear-browser-cache
>
> It is a bit unfortunate but I have seen it happen before.
>
> regards,
>
> Lars
>
>
>
>
> On Thu, Jan 14, 2016 at 6:01 PM, Laura E. Lincks <
> laura.lincks@xxxxxxxxxxxxxxxxx> wrote:
>
>> I was just doing that after finding the same problem in a thread from
>> last year.
>>
>>
>> Here’s what I see :
>>
>> Uncaught SyntaxError: Unexpected token u
>>
>>
>> screen shot attached
>>
>>
>>
>>
>> *Laura E. Lincks*
>> Database Manager/Developer
>> ICAP - Columbia University
>> Mailman School of Public Health
>> 60 Haven Ave, Floor B1
>> New York, NY 10032
>> Tel: 212 304 7132
>>
>> On Thu, Jan 14, 2016 at 11:53 AM, Lars Helge Øverland <
>> larshelge@xxxxxxxxx> wrote:
>>
>>> Hi Laura,
>>>
>>> could you please open the Chrome developer tools and look in the
>>> "Console" for errors in red?
>>>
>>> regards,
>>>
>>> Lars
>>>
>>>
>>> On Thu, Jan 14, 2016 at 5:52 PM, Laura E. Lincks <
>>> laura.lincks@xxxxxxxxxxxxxxxxx> wrote:
>>>
>>>> Version: 2.20Build revision: 20001
>>>> We are suddenly having difficulty in using the Data Entry screen (it
>>>> was working prior to yesterday, more than likely.)
>>>> The OrgUnit tree appears on the left hand side and the search
>>>> functionality works there. But when selecting any OrgUnit in the tree it
>>>> does not populate the Organisation Unit field in the snapshot below.
>>>> Furthermore, the Loading bar next to Data Set continues to run but the Data
>>>> Set list is never populated because no Org Unit ever gets loaded into the
>>>> field.
>>>>
>>>>
>>>> <image.png>
>>>> The log does not show us anything obvious. Analytics ran automatically
>>>> overnight without a problem.
>>>>
>>>> We are looking at Datasets which changed over the past day... there are
>>>> 12 which were updated, but I am not sure if there were true changes or if
>>>> someone just edited them and clicked Save instead of Cancel, because there
>>>> was no reason to modify datasets as far as I know.
>>>>
>>>> 3 of the 12 modified datasets are designed with a dimension type of
>>>> Aggregate with a specific category combo of POS. But these are not new
>>>> datasets and have been in existence and have functioned properly for many
>>>> months. We've set up a test environment -- modifying that aggregate
>>>> dimension dataset did not resolve the issue of not being able to load an
>>>> Org Unit and its available Datasets on the Data Entry screen.
>>>>
>>>> Does anyone have an idea of what we should be looking for? Thanks.
>>>>
>>>>
>>>> *Laura E. Lincks*
>>>> Database Manager/Developer
>>>> ICAP - Columbia University
>>>> Mailman School of Public Health
>>>> 60 Haven Ave, Floor B1
>>>> New York, NY 10032
>>>> Tel: 212 304 7132
>>>>
>>>> _______________________________________________
>>>> 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
>>>>
>>>>
>>>
>>>
>>> --
>>> Lars Helge Øverland
>>> Lead developer, DHIS 2
>>> University of Oslo
>>> Skype: larshelgeoverland
>>> http://www.dhis2.org <https://www.dhis2.org/>
>>>
>>>
>>
>
>
> --
> Lars Helge Øverland
> Lead developer, DHIS 2
> University of Oslo
> Skype: larshelgeoverland
> http://www.dhis2.org <https://www.dhis2.org/>
>
> _______________________________________________
> 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
>
>
>
> _______________________________________________
> 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
>
>
--
Jason P. Pickering
email: jason.p.pickering@xxxxxxxxx
tel:+46764147049
References