Org unit hierarchy in Organizational unit not in proper order

Hi Everyone,

My org units are not showing in order even though the levels are correct. Please see below:

This is what it I see in pivot tables:

I’ve already ran ‘update org unit paths’ a few times and cleared my cache but still get the same org unit order:
image

Thank you,

John

1 Like

Hi John,

Just to eliminate one possible factor, does your user have just one Org Unit selected for each of ‘Data Capture’ and ‘Data Output’? (DHIS2 allows you to select multiple Org Units for each of these, but then often ties itself in knots when trying to render this.)

Cheers, Sam.

1 Like

Hi Sam,

Thanks for the response. I have the following setup for my user:

I changed it to just have the following setup:

after that I ran maintenance >update org unit paths and then went to resource tables and clicked on generate tables

After these steps, I now have the correct order of the org units!
image

Thanks for pointing me to the right direction.

John

1 Like

Great to know that helped. :slight_smile:

Just for info, you probably don’t need to run ‘maintenance’ -> ‘update org unit paths’, as I’m guessing your org unit hierarchy was fine - it was just the setup for this individual user that was the problem.

It might be worth reviewing other DHIS2 user accounts to see if they have the same issue - if they also have multiple org units selected, they’ll probably still be running into the same bug…

Cheers, Sam.

1 Like