JS Errors in data entry

We are seeing an error in data entry, which is preventing all data entry,so it is pretty critical.

Uncaught SyntaxError: Unexpected token u
image

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@gmail.com
tel:+46764147049

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…

image

···

On Fri, Sep 25, 2015 at 4:49 PM, Jason Pickering jason.p.pickering@gmail.com 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@gmail.com
tel:+46764147049


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


Morten

I got this

[Error: Parse error on line 11:

…Z79clX7y1",“v”:1} , ,"f1R88WLGXvs-USfPOP

-----------------------^

Expecting ‘STRING’, got ‘,’]

image

···

On Fri, Sep 25, 2015 at 11:53 AM, Morten Olav Hansen mortenoh@gmail.com 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@gmail.com 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@gmail.com
tel:+46764147049


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

Jason P. Pickering
email: jason.p.pickering@gmail.com
tel:+46764147049

Can you give a bit more?

image

···

On Fri, Sep 25, 2015 at 5:01 PM, Jason Pickering jason.p.pickering@gmail.com wrote:

I got this

[Error: Parse error on line 11:

…Z79clX7y1",“v”:1} , ,"f1R88WLGXvs-USfPOP

-----------------------^

Expecting ‘STRING’, got ‘,’]


Morten

On Fri, Sep 25, 2015 at 11:53 AM, Morten Olav Hansen mortenoh@gmail.com 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…


Jason P. Pickering
email: jason.p.pickering@gmail.com
tel:+46764147049


Morten

On Fri, Sep 25, 2015 at 4:49 PM, Jason Pickering jason.p.pickering@gmail.com 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@gmail.com
tel:+46764147049


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

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?

image

···

On Fri, Sep 25, 2015 at 12:01 PM, Jason Pickering jason.p.pickering@gmail.com 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@gmail.com 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…


Jason P. Pickering
email: jason.p.pickering@gmail.com
tel:+46764147049


Morten

On Fri, Sep 25, 2015 at 4:49 PM, Jason Pickering jason.p.pickering@gmail.com 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@gmail.com
tel:+46764147049


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

Jason P. Pickering
email: jason.p.pickering@gmail.com
tel:+46764147049

“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.

image

···

On Fri, Sep 25, 2015 at 12:44 PM, Jason Pickering jason.p.pickering@gmail.com 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?


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

On Fri, Sep 25, 2015 at 12:01 PM, Jason Pickering jason.p.pickering@gmail.com wrote:

I got this

[Error: Parse error on line 11:

…Z79clX7y1",“v”:1} , ,"f1R88WLGXvs-USfPOP

-----------------------^

Expecting ‘STRING’, got ‘,’]


Jason P. Pickering
email: jason.p.pickering@gmail.com
tel:+46764147049

On Fri, Sep 25, 2015 at 11:53 AM, Morten Olav Hansen mortenoh@gmail.com 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…


Jason P. Pickering
email: jason.p.pickering@gmail.com
tel:+46764147049


Morten

On Fri, Sep 25, 2015 at 4:49 PM, Jason Pickering jason.p.pickering@gmail.com 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@gmail.com
tel:+46764147049


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

Yeah, i see it but not sure what that object should be. Is this related to option sets?

image

···

On Fri, Sep 25, 2015 at 12:57 PM, Mark Polak mark@thedutchies.com 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@gmail.com 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?


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

On Fri, Sep 25, 2015 at 12:01 PM, Jason Pickering jason.p.pickering@gmail.com wrote:

I got this

[Error: Parse error on line 11:

…Z79clX7y1",“v”:1} , ,"f1R88WLGXvs-USfPOP

-----------------------^

Expecting ‘STRING’, got ‘,’]


Jason P. Pickering
email: jason.p.pickering@gmail.com
tel:+46764147049

On Fri, Sep 25, 2015 at 11:53 AM, Morten Olav Hansen mortenoh@gmail.com 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…


Jason P. Pickering
email: jason.p.pickering@gmail.com
tel:+46764147049


Morten

On Fri, Sep 25, 2015 at 4:49 PM, Jason Pickering jason.p.pickering@gmail.com 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@gmail.com
tel:+46764147049


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

Jason P. Pickering
email: jason.p.pickering@gmail.com
tel:+46764147049

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?

image

···

On Fri, Sep 25, 2015 at 1:10 PM, Jason Pickering jason.p.pickering@gmail.com 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@thedutchies.com 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.


Jason P. Pickering
email: jason.p.pickering@gmail.com
tel:+46764147049

On Fri, Sep 25, 2015 at 12:44 PM, Jason Pickering jason.p.pickering@gmail.com 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?


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

On Fri, Sep 25, 2015 at 12:01 PM, Jason Pickering jason.p.pickering@gmail.com wrote:

I got this

[Error: Parse error on line 11:

…Z79clX7y1",“v”:1} , ,"f1R88WLGXvs-USfPOP

-----------------------^

Expecting ‘STRING’, got ‘,’]


Jason P. Pickering
email: jason.p.pickering@gmail.com
tel:+46764147049

On Fri, Sep 25, 2015 at 11:53 AM, Morten Olav Hansen mortenoh@gmail.com 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…


Jason P. Pickering
email: jason.p.pickering@gmail.com
tel:+46764147049


Morten

On Fri, Sep 25, 2015 at 4:49 PM, Jason Pickering jason.p.pickering@gmail.com 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@gmail.com
tel:+46764147049


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

Agree with Mark. Check wether you’re supposed to get two or three optionSets.

image

···

2015-09-25 13:20 GMT+02:00 Mark Polak mark@thedutchies.com:

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?


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

On Fri, Sep 25, 2015 at 1:10 PM, Jason Pickering jason.p.pickering@gmail.com 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@thedutchies.com 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.


Jason P. Pickering
email: jason.p.pickering@gmail.com
tel:+46764147049

On Fri, Sep 25, 2015 at 12:44 PM, Jason Pickering jason.p.pickering@gmail.com 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?


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

On Fri, Sep 25, 2015 at 12:01 PM, Jason Pickering jason.p.pickering@gmail.com wrote:

I got this

[Error: Parse error on line 11:

…Z79clX7y1",“v”:1} , ,"f1R88WLGXvs-USfPOP

-----------------------^

Expecting ‘STRING’, got ‘,’]


Jason P. Pickering
email: jason.p.pickering@gmail.com
tel:+46764147049

On Fri, Sep 25, 2015 at 11:53 AM, Morten Olav Hansen mortenoh@gmail.com 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…


Jason P. Pickering
email: jason.p.pickering@gmail.com
tel:+46764147049


Morten

On Fri, Sep 25, 2015 at 4:49 PM, Jason Pickering jason.p.pickering@gmail.com 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@gmail.com
tel:+46764147049


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

I fixed it,but will detail the problem when I get back, as I still do not understand what it was, but it was related to an option set assigned to a data element.

image

···

On Fri, Sep 25, 2015 at 1:34 PM, Halvdan Grelland halvdanhg@gmail.com wrote:

Agree with Mark. Check wether you’re supposed to get two or three optionSets.

2015-09-25 13:20 GMT+02:00 Mark Polak mark@thedutchies.com:

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?


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

On Fri, Sep 25, 2015 at 1:10 PM, Jason Pickering jason.p.pickering@gmail.com 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@thedutchies.com 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.


Jason P. Pickering
email: jason.p.pickering@gmail.com
tel:+46764147049

On Fri, Sep 25, 2015 at 12:44 PM, Jason Pickering jason.p.pickering@gmail.com 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?


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

On Fri, Sep 25, 2015 at 12:01 PM, Jason Pickering jason.p.pickering@gmail.com wrote:

I got this

[Error: Parse error on line 11:

…Z79clX7y1",“v”:1} , ,"f1R88WLGXvs-USfPOP

-----------------------^

Expecting ‘STRING’, got ‘,’]


Jason P. Pickering
email: jason.p.pickering@gmail.com
tel:+46764147049

On Fri, Sep 25, 2015 at 11:53 AM, Morten Olav Hansen mortenoh@gmail.com 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…


Jason P. Pickering
email: jason.p.pickering@gmail.com
tel:+46764147049


Morten

On Fri, Sep 25, 2015 at 4:49 PM, Jason Pickering jason.p.pickering@gmail.com 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@gmail.com
tel:+46764147049


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

Jason P. Pickering
email: jason.p.pickering@gmail.com
tel:+46764147049