Error in Creating Relationship Type on Version 2.40.5

Dear DHIS2 Community,

I am trying to create a relationship, and it works on windows but I am getting below error on Linux server.

image

Has anyone else encountered this issue or have any insights on what might be causing it? Any suggestions or advice would be greatly appreciated.

Thank you!

Hi @sami12111

I would like to understand the issue better please. Creating relationships in Tracker should work the same way regardless of the DHIS2 deployment unless there’s an issue in the configuration or corruption in the DB.

Let’s focus on the error. Would you please share step by step how this issue appears?

Thanks!

Hi @Gassim

I followed these steps:

  • In the program tab, I selected the relationship type and clicked the plus icon to create a new relationship.

  • I then filled in the fields, including the name, code, description, and relationship name as seen from the initiating entity.

  • Under “From Constraint,” I selected “Tracked Entity Instance,” then chose the tracked entity type, program, and its attributes.

  • Similarly, under “To Constraint,” I selected “Tracked Entity Instance,” then chose the tracked entity type, program, and its attributes.

After completing these steps and filling out the form, when I click the save button, an error appears in the console.

Hi @sami12111

I’m not able to reproduce this issue on Play. It says ‘constraint’ violation so there must be something in the details. One way to dig for more information about this error is to check the Catalina.out log. Please share the entire log (without the authentication / sensitive info).

Thank you!