Organization Chart not working

Problem

When I add the organization chart ("org chart" for short) macro to a Confluence page I get an error message. It reads "Error rendering macro 'company-org-chart'. The organization hierarchy can not be calculated. You need to talk to your Administrator to check the settings for organization charts".

 

Solution

First, please have a look at one of the user profiles and check if the manager is displayed correctly (i.e. as a name, not a string of characters denoting the location in the active directory). If it is not displayed correctly, please check in the configuration of the manager field (via Confluence Administration - Profile Elements), if in the section Field Type Configuration the field type is set to "Userfield" and the checkbox for "The field value is a DN reference to the user" is checked.

If you are synchronizing from AD, put the name of the respective field in the Active Directory into Mapping for LDAP attribute(s):

%%PutTheNameHere%%

If the organization chart is still not rendering, please check the configuration of it (via Confluence Administration - Organization Charts). The field for the manager must be selected in the "General Configuration". Furthermore in the section "User Profile Configuration" the checkbox for "Display Organization Chart" must be checked.

It may be, that the organization chart does not contain any information yet. Organization charts are stored in a cache, which is refreshed periodically (if needed). This means that the organization charts displayed by the macro will not be up to date until the cache is refreshed. The default refresh period is 30 minutes. Depending on how many users are in your instance, the refresh itself may take from some milliseconds for less then 100 users up to several minutes for 10k users or more.

The cache is refreshed based on a scheduled job. If you need to force a cache refresh, you can run the job manually. For more details on where to find the scheduled jobs and how to run them manually, please refer to our knowledge base article. The job is called “Org Chart Cache Updater”.

After running the job, refresh the page with the organization chart completely with "Strg + F5" or "Strg + R" - depending on your browser.