Remove Lock Exception

I am working on DHIS2 version 2.40 and I have a user whose daily task is to create and delete open forms using the Lock Exception function.

To allow this, I created a dedicated user role called “Manage Exception”, which includes:

  • the Data Administration / Data Management app

  • the system authority “Perform maintenance tasks”

With this configuration, the user can successfully create lock exceptions, but when trying to delete them whether individually or in bulk the system returns the following error:

Error removing lock exception: Error: You don’t have the proper permissions to delete this object.

Has anyone experienced this issue or found a configuration that works?

I should mention that if I assign “All (Full authority)”, the user can delete lock exceptions but this gives access to the entire system, which is not acceptable for this user profile.

Any guidance or suggestions would be highly appreciated.

Thank you!

Hi @kmartial

Welcome back to the community! :clap:

Would you please check that the user has delete permission to the datasets? Check the data set sharing settings and make sure the user has delete permissions on the dataset itself. I think this is a requirement to be able to delete the lock exception.

Please let me know your thoughts and this and if it works when you tried it.

Thanks!

Hi @Gassim
granted the “Add/Update Public” and “Delete” privileges to my user role, as you can see in the screenshot, and it worked successfully.

Thank you for your guidance.
My colleague Becky @rs3524 also suggested the same solution, and I appreciate her support as well.

Best regards,

1 Like

Hi @kmartial @rs3524

Glad you found the solution and thanks for sharing it with the community! :clap:

Thanks for the screenshot and marking the post solved. :+1:

1 Like