Problem to open Settings app after upgrade

Hi all,

We have an problem to open the System Settings app after upgrade to 2.27.

There is no error in the log files and the only error in browser console is:

Uncaught (in promise) Error: Can not add a Model without id to a ModelCollection

at o (utils.js:22)

at ModelCollection.js:47

at Array.forEach ()

at s (ModelCollection.js:45)

at new e (ModelCollection.js:100)

at Function.value (ModelCollection.js:263)

at ModelDefinition.js:373

at

We would really appreciate assistance with the cause of this – 2 instances now that has this problem and no matter what you do to replace wars etc we unable to fix it which seems to point to a database error but we don’t know where to start looking as nothing obvious stands out.

Regards,

Elmarie Claasen

Hisp logo

Project Manager

Health Information Systems Program

Tel: 041-367 1027

Cell: 082 374 2209

E-mail: elmarie@hisp.org

Skype: elmarie.claasen52

Hi Elmarie,

I agree this does seem like a database error. I can’t really tell where the problem is from this error message, but as a starting point you might check the following API endpoints for invalid data:

dataElementGroups

indicatorGroups

organisationUnits

organisationUnitLevels

userGroups

userRoles

Hope this helps.

Best regards,

image

···

On Thu, Aug 10, 2017 at 7:57 PM, Elmarie Claasen elmarie@hisp.org wrote:

Hi all,

We have an problem to open the System Settings app after upgrade to 2.27.

There is no error in the log files and the only error in browser console is:

Uncaught (in promise) Error: Can not add a Model without id to a ModelCollection

at o (utils.js:22)

at ModelCollection.js:47

at Array.forEach ()

at s (ModelCollection.js:45)

at new e (ModelCollection.js:100)

at Function.value (ModelCollection.js:263)

at ModelDefinition.js:373

at

We would really appreciate assistance with the cause of this – 2 instances now that has this problem and no matter what you do to replace wars etc we unable to fix it which seems to point to a database error but we don’t know where to start looking as nothing obvious stands out.

Regards,

Elmarie Claasen

Project Manager

Health Information Systems Program

Tel: 041-367 1027

Cell: 082 374 2209

E-mail: elmarie@hisp.org

Skype: elmarie.claasen52

This message and any attachments are subject to a disclaimer published at http://www.hisp.org/policies.html#comms_disclaimer. Please read the disclaimer before opening any attachment or taking any other action in terms of this electronic transmission. If you cannot access the disclaimer, kindly send an email to disclaimer@hisp.org and a copy will be provided to you. By replying to this e-mail or opening any attachment you agree to be bound by the provisions of the disclaimer.


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

Nicolay Ramm

Front end developer, DHIS 2

University of Oslo

https://www.dhis2.org

Hi

We found the problem yesterday - one UID in the UserRole table had only 10 characters.

Regards

Calle

image

···

On 11 August 2017 at 15:44, Nicolay Ramm nicolay@dhis2.org wrote:

Hi Elmarie,

I agree this does seem like a database error. I can’t really tell where the problem is from this error message, but as a starting point you might check the following API endpoints for invalid data:

dataElementGroups

indicatorGroups

organisationUnits

organisationUnitLevels

userGroups

userRoles

Hope this helps.

Best regards,


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

Nicolay Ramm

Front end developer, DHIS 2

University of Oslo

https://www.dhis2.org

On Thu, Aug 10, 2017 at 7:57 PM, Elmarie Claasen elmarie@hisp.org wrote:

Hi all,

We have an problem to open the System Settings app after upgrade to 2.27.

There is no error in the log files and the only error in browser console is:

Uncaught (in promise) Error: Can not add a Model without id to a ModelCollection

at o (utils.js:22)

at ModelCollection.js:47

at Array.forEach ()

at s (ModelCollection.js:45)

at new e (ModelCollection.js:100)

at Function.value (ModelCollection.js:263)

at ModelDefinition.js:373

at

We would really appreciate assistance with the cause of this – 2 instances now that has this problem and no matter what you do to replace wars etc we unable to fix it which seems to point to a database error but we don’t know where to start looking as nothing obvious stands out.

Regards,

Elmarie Claasen

Project Manager

Health Information Systems Program

Tel: 041-367 1027

Cell: 082 374 2209

E-mail: elmarie@hisp.org

Skype: elmarie.claasen52

This message and any attachments are subject to a disclaimer published at http://www.hisp.org/policies.html#comms_disclaimer. Please read the disclaimer before opening any attachment or taking any other action in terms of this electronic transmission. If you cannot access the disclaimer, kindly send an email to disclaimer@hisp.org and a copy will be provided to you. By replying to this e-mail or opening any attachment you agree to be bound by the provisions of the disclaimer.


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


Calle Hedberg

46D Alma Road, 7700 Rosebank, SOUTH AFRICA

Tel/fax (home): +27-21-685-6472

Cell: +27-82-853-5352

Iridium SatPhone: +8816-315-19119

Email: calle.hedberg@gmail.com

Skype: calle_hedberg


Hi Calle,

Yes thanks that was the problem. There seem to be a check between 2.24 and 2.25 for invalid UIDs and then System Settings does not open.

It would be really useful if there was a integrity error to show invalid UIDs because it was a bit of a search for days to find the cause.

Regards,

Elmarie Claasen

Hisp logo

Project Manager

Health Information Systems Program

Tel: 041-367 1027

Cell: 082 374 2209

E-mail: elmarie@hisp.org

Skype: elmarie.claasen52

···

Hi

We found the problem yesterday - one UID in the UserRole table had only 10 characters.

Regards

Calle

On 11 August 2017 at 15:44, Nicolay Ramm nicolay@dhis2.org wrote:

Hi Elmarie,

I agree this does seem like a database error. I can’t really tell where the problem is from this error message, but as a starting point you might check the following API endpoints for invalid data:

dataElementGroups

indicatorGroups

organisationUnits

organisationUnitLevels

userGroups

userRoles

Hope this helps.

Best regards,

Nicolay Ramm

Front end developer, DHIS 2

University of Oslo

https://www.dhis2.org

On Thu, Aug 10, 2017 at 7:57 PM, Elmarie Claasen elmarie@hisp.org wrote:

Hi all,

We have an problem to open the System Settings app after upgrade to 2.27.

There is no error in the log files and the only error in browser console is:

Uncaught (in promise) Error: Can not add a Model without id to a ModelCollection

at o (utils.js:22)

at ModelCollection.js:47

at Array.forEach ()

at s (ModelCollection.js:45)

at new e (ModelCollection.js:100)

at Function.value (ModelCollection.js:263)

at ModelDefinition.js:373

at

We would really appreciate assistance with the cause of this – 2 instances now that has this problem and no matter what you do to replace wars etc we unable to fix it which seems to point to a database error but we don’t know where to start looking as nothing obvious stands out.

Regards,

Elmarie Claasen

Project Manager

Health Information Systems Program

Tel: 041-367 1027

Cell: 082 374 2209

E-mail: elmarie@hisp.org

Skype: elmarie.claasen52

This message and any attachments are subject to a disclaimer published at http://www.hisp.org/policies.html#comms_disclaimer. Please read the disclaimer before opening any attachment or taking any other action in terms of this electronic transmission. If you cannot access the disclaimer, kindly send an email to disclaimer@hisp.org and a copy will be provided to you. By replying to this e-mail or opening any attachment you agree to be bound by the provisions of the disclaimer.


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


Calle Hedberg

46D Alma Road, 7700 Rosebank, SOUTH AFRICA

Tel/fax (home): +27-21-685-6472

Cell: +27-82-853-5352

Iridium SatPhone: +8816-315-19119

Email: calle.hedberg@gmail.com

Skype: calle_hedberg