Approval levels are failing to save

Hi,

We’re using DHIS 2.25. In settings app, we have approvals. When we try to create an Approval Level and try to save, he application throws a snack-bar message saying “Failed to save approval level”. Approval levels used to get saved in earlier DHIS versions. Could you please look into it.

Please find the screenshot attached.

Cheers,

···

Archana Chillala
Application Developer
Email
archanac@thoughtworks.com
Telephone
+91 9100960533
ThoughtWorks

This has recently been noticed and reported as a new bug at https://bugs.launchpad.net/dhis2/+bug/1638551. The problem is that an approval level cannot be saved without specifying a Category option group set – which should be optional, not required. One workaround until this is fixed is that you can create an approval level with a category option group set, and then patch the approval level’s categoryoptiongroupsetid field in the database to NULL. (Then clear the HIbernate cache or restart Tomcat.)

Also note that the workflow field is missing from edit/create dataset in 2.25. This has been reported at https://bugs.launchpad.net/dhis2/+bug/1638553. Again, as a workaround you could patch the workflowid into the dataset record and then clear the HIbernate cache or restart Tomcat.

Cheers,

Jim

···

On Fri, Nov 4, 2016 at 8:47 AM, Archana Chillala archanac@thoughtworks.com wrote:

Hi,

We’re using DHIS 2.25. In settings app, we have approvals. When we try to create an Approval Level and try to save, he application throws a snack-bar message saying “Failed to save approval level”. Approval levels used to get saved in earlier DHIS versions. Could you please look into it.

Please find the screenshot attached.

Cheers,

Archana Chillala
Application Developer
Email
archanac@thoughtworks.com
Telephone
+91 9100960533
ThoughtWorks


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

Jim Grace
Core developer, DHIS 2

HISP US Inc.

http://www.dhis2.org

This should be fixed in 2.25/master now.

···

On Fri, Nov 4, 2016 at 11:45 PM, Jim Grace jim@dhis2.org wrote:

This has recently been noticed and reported as a new bug at https://bugs.launchpad.net/dhis2/+bug/1638551. The problem is that an approval level cannot be saved without specifying a Category option group set – which should be optional, not required. One workaround until this is fixed is that you can create an approval level with a category option group set, and then patch the approval level’s categoryoptiongroupsetid field in the database to NULL. (Then clear the HIbernate cache or restart Tomcat.)

Also note that the workflow field is missing from edit/create dataset in 2.25. This has been reported at https://bugs.launchpad.net/dhis2/+bug/1638553. Again, as a workaround you could patch the workflowid into the dataset record and then clear the HIbernate cache or restart Tomcat.

Cheers,

Jim


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 Olav Hansen

Senior Engineer, DHIS 2

University of Oslo

http://www.dhis2.org

On Fri, Nov 4, 2016 at 8:47 AM, Archana Chillala archanac@thoughtworks.com wrote:

Hi,

We’re using DHIS 2.25. In settings app, we have approvals. When we try to create an Approval Level and try to save, he application throws a snack-bar message saying “Failed to save approval level”. Approval levels used to get saved in earlier DHIS versions. Could you please look into it.

Please find the screenshot attached.

Cheers,

Archana Chillala
Application Developer
Email
archanac@thoughtworks.com
Telephone
+91 9100960533
ThoughtWorks


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

Jim Grace
Core developer, DHIS 2

HISP US Inc.

http://www.dhis2.org

Thank you, Morten. Works now!

···

On Mon, Nov 7, 2016 at 7:07 AM, Morten Olav Hansen morten@dhis2.org wrote:

This should be fixed in 2.25/master now.

Archana Chillala
Application Developer
Email
archanac@thoughtworks.com
Telephone
+91 9100960533
ThoughtWorks

Morten Olav Hansen

Senior Engineer, DHIS 2

University of Oslo

http://www.dhis2.org

On Fri, Nov 4, 2016 at 11:45 PM, Jim Grace jim@dhis2.org wrote:

This has recently been noticed and reported as a new bug at https://bugs.launchpad.net/dhis2/+bug/1638551. The problem is that an approval level cannot be saved without specifying a Category option group set – which should be optional, not required. One workaround until this is fixed is that you can create an approval level with a category option group set, and then patch the approval level’s categoryoptiongroupsetid field in the database to NULL. (Then clear the HIbernate cache or restart Tomcat.)

Also note that the workflow field is missing from edit/create dataset in 2.25. This has been reported at https://bugs.launchpad.net/dhis2/+bug/1638553. Again, as a workaround you could patch the workflowid into the dataset record and then clear the HIbernate cache or restart Tomcat.

Cheers,

Jim


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, Nov 4, 2016 at 8:47 AM, Archana Chillala archanac@thoughtworks.com wrote:

Hi,

We’re using DHIS 2.25. In settings app, we have approvals. When we try to create an Approval Level and try to save, he application throws a snack-bar message saying “Failed to save approval level”. Approval levels used to get saved in earlier DHIS versions. Could you please look into it.

Please find the screenshot attached.

Cheers,

Archana Chillala
Application Developer
Email
archanac@thoughtworks.com
Telephone
+91 9100960533
ThoughtWorks


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

Jim Grace
Core developer, DHIS 2

HISP US Inc.

http://www.dhis2.org