web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Answered

Setting up Hierarchy Tree Control in Power Apps Model Driven App

(3) ShareShare
ReportReport
Posted on by 8
I can't seem to make it work when applying the settings after adding the control.
It just say "Loading..." in the control and nothing is happening after waiting for hours. 
Not sure which one I'm missing.
1. Just enabled Hierarchical setting for the Lookup table A and that's it.
2. Added Hierarchy Tree Control to the same lookup table A.
3. Populated the required fields in (*) and no issues but when I clicked on Ok to apply and nothing is happening just says "Loading..." for hours but no luck.
 
Anyone have any experience that made it worked?
 
Thanks in advance!
Categories:
I have the same question (0)
  • SB-07041101-0 Profile Picture
    8 on at
    Setting up Hierarchy Tree Control in Power Apps Model Driven App
    Hi Daivat,
     
    Thank you for your responses appreciated it!
     
    For the Parent field, not sure which one you're referring to. I don't Parent field in setting up the Hierarchy.
    Do you have a video I can follow step by step?
     
    I have attached here the config screenshot for your reference.
     
    And by the way, I don't see as well the table in my Hirerarchy Tree Control dropdown in Settings don't know what's missing.
     
     
    Thank you so much!
  • Verified answer
    Daivat Vartak (v-9davar) Profile Picture
    7,827 Super User 2025 Season 2 on at
    Setting up Hierarchy Tree Control in Power Apps Model Driven App
    Hello SB-07041101-0,
     

    You're on the right track with the steps to enable the Hierarchy Tree Control for a lookup table in Dynamics 365. The fact that it gets stuck on "Loading..." for hours suggests that something is preventing the control from initializing or rendering correctly.

    Here's a breakdown of potential causes and troubleshooting steps to help you get the Hierarchy Tree Control working:

    Potential Causes for "Loading..." Issue:

    1. Missing Data for Hierarchy: The most common reason is that the data in your Lookup Table A doesn't actually have the necessary hierarchical relationships defined. The Hierarchy Tree Control relies on a self-referential relationship (a lookup field on the entity pointing back to itself) and the "Hierarchy Settings" to understand how to build the tree structure.
    2. Incorrect Hierarchy Settings: Even if you enabled the hierarchical setting, the specific configuration within those settings might be incomplete or incorrect.
    3. Large Dataset: If your Lookup Table A contains a very large number of records, the initial loading and rendering of the hierarchy tree could take a significant amount of time, although "hours" is excessive.
    4. Client-Side Issues (Browser): Sometimes, browser-related issues can interfere with the rendering of controls.
    5. Customizations or Conflicts: Other customizations (JavaScript, custom controls) on the same form or related entities might be interfering with the Hierarchy Tree Control.
    6. Performance Issues: General performance problems with your Dynamics 365 environment could be contributing to the slow loading.
    7. Caching Issues: Cached data might be preventing the new control configuration from loading correctly.

       


    8.  

    Troubleshooting Steps:

    1. Verify Hierarchy Data:

      • Self-Referential Lookup: Ensure that your Lookup Table A has a lookup field that points back to records of the same entity. This is the "Parent" or "Reporting To" field that defines the hierarchy.
      • Populate the Parent Field: Crucially, make sure that this self-referential lookup field is populated with data to define the hierarchical relationships between records in Table A. Without this data, the Hierarchy Tree Control won't have anything to structure.
      • Example: If Table A is "Organizations," you might have a lookup field called "Parent Organization" that links an organization record to its parent organization record.

      •  

    2. Review Hierarchy Settings:

       

      • Go back to Settings > Customizations > Customize the System.
      • Expand Entities and select your Lookup Table A.
      • In the controls tab, find the Hierarchy Tree Control you added.
      • Click the pencil icon (Edit) for the control.
      • Check the "Hierarchy Settings" property: Ensure you have selected the correct "Hierarchy Configuration" that you previously defined for this entity.
      • Review the "Data Source" property: Make sure it's correctly pointing to the view that contains the data you want to display in the hierarchy.

      •  

    3. Test with a Small Dataset: If you have a large amount of data, try creating a small subset of records in Lookup Table A with a clear hierarchical structure and see if the control loads correctly for those records. This will help determine if the issue is data-related or performance-related.

    4. Check Browser:

       

      • Try a different browser: Switch to Edge, Chrome, Firefox, or another supported browser to see if the issue persists.
      • Clear Cache and Cookies: Clear your browser's cache and cookies and try again.
      • Open in Private/Incognito Mode: This will rule out browser extensions or cached data interfering with the control.

    5. Inspect Form Customizations:

       

      • If the Hierarchy Tree Control is added to a specific form, open the form editor.
      • Check for any JavaScript Web Resources or other custom controls that might be running on the form and could be causing conflicts. Try temporarily disabling them to see if the Hierarchy Tree Control loads.

    6. Check for Environment Performance Issues:

       

      • Monitor the overall performance of your Dynamics 365 environment. Slow server-side processing could contribute to the long loading times.

    7. Examine Error Messages (If Any): While you only see "Loading...", check if there are any error messages in the browser's developer console (usually opened by pressing F12). Look for JavaScript errors or network errors that might provide more clues.

    8. Verify Control Compatibility: Ensure that the version of the Hierarchy Tree Control is compatible with your version of Dynamics 365.

       


    9.  

    Specific Things to Double-Check in Your Steps:

    • Step 1 (Enable Hierarchical Setting): Did you just enable the setting, or did you also configure the hierarchical relationship by selecting the self-referential lookup field and defining the hierarchy settings (name, description, primary image, etc.)? Simply enabling it isn't enough; you need to define how the hierarchy is structured.
    • Step 2 (Add Hierarchy Tree Control): Ensure you added the control to the correct location where you want it to be displayed (e.g., the main form of the Lookup Table A or a grid).
    • Step 3 (Populated Required Fields): Double-check that all the required fields within the Hierarchy Settings are indeed populated correctly. This includes the relationship field, name field, and potentially other visual configuration fields.

    •  

    Troubleshooting Flow:

    1. Focus on the Data: The lack of hierarchical data is the most likely culprit. Verify the self-referential lookup and ensure it's populated.
    2. Review Hierarchy Settings Configuration: Make sure the settings are correctly defined and linked to the appropriate fields.
    3. Test with a Small Dataset: Isolate the behavior with a minimal set of hierarchical data.
    4. Check Browser: Rule out client-side issues.
    5. Investigate Customizations: Look for potential conflicts with other customizations.

    6.  

    By systematically working through these steps, you should be able to identify why the Hierarchy Tree Control is stuck on "Loading..." and get it to display your hierarchical data correctly. Remember to provide more details about your specific setup (entity names, field names) if you need more targeted assistance.

     
    If my answer was helpful, please click Like, and if it solved your problem, please mark it as verified to help other community members find more. If you have further questions, please feel free to contact me.
     
    My response was crafted with AI assistance and tailored to provide detailed and actionable guidance for your Microsoft Dynamics 365 query.
     
    Regards,
    Daivat Vartak
  • Suggested answer
    Holly Huffman Profile Picture
    6,520 Super User 2025 Season 2 on at
    Setting up Hierarchy Tree Control in Power Apps Model Driven App
    Good morning, afternoon, or evening :) depending on your location!
     
    The "Loading..." issue with the Hierarchy Tree Control in Power Apps Model-Driven Apps often occurs due to incomplete configuration. Here’s what you need to check:
    1. Verify Hierarchical Relationship: Ensure that the lookup table (Table A) has a self-referential relationship marked as hierarchical. Navigate to Table Relationships and confirm that the relationship is correctly set.
    2. Hierarchy Settings: In the solution explorer, go to Hierarchy Settings for Table A. Create a new hierarchy setting and link it to a Quick View Form. This step is essential for the hierarchy visualization to work.
    3. Quick View Form Configuration: Ensure the Quick View Form used in the hierarchy settings is properly configured with the required fields.
    4. Publish All Customizations: After making changes, publish all customizations to ensure the settings are applied.
      Hope this helps!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
DAnny3211 Profile Picture

DAnny3211 251

#2
Abhilash Warrier Profile Picture

Abhilash Warrier 137 Super User 2025 Season 2

#3
Martin Dráb Profile Picture

Martin Dráb 90 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans