Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Unanswered

Error when opening Hierarchy view of account entity in model-driven app

(1) ShareShare
ReportReport
Posted on by 53

Hello everyone

I have made a model-driven app that shows the Account entity. By default, the account entity has a parent-child relationship with itself.

pastedimage1673360990237v1.png

When I click the Hierarchy view, I get an error:


pastedimage1673361042221v2.png

When I check for more details, I get the following:

pastedimage1673361117952v3.png

When I see the error, I can see that an undefined object is trying to do the '.ToLowercase' method.
But when I check my typescript/javascript, nowhere does it try to do a 'toLowercase'.
I see that the error does mention the sitemap or the sitemappanelactioninspector, but I don't know how I can debug this or find out where the error actually lies.

I don't have any scripts running for the hierarchy views, or any plugins on the account entity.

Any help would be much appreciated.

Thanks!

  • PK-13011209-0 Profile Picture
    PK-13011209-0 3 on at
    Error when opening Hierarchy view of account entity in model-driven app
    Have anyone found a solution to this issue? Started to experience same thing recently while trying to access ORG CHART functionality.
  • BC-14061612-0 Profile Picture
    BC-14061612-0 2 on at
    Error when opening Hierarchy view of account entity in model-driven app
    I am also getting this error.
  • Error when opening Hierarchy view of account entity in model-driven app
    Hi,
    I have the same error, did you find a solution?
    Thanks
  • Thomas Fuchs Profile Picture
    Thomas Fuchs 5 on at
    RE: Error when opening Hierarchy view of account entity in model-driven app

    I have the same issue with a PowerApp based on a simple table only containing name and parent (self-referenced Lookup with Hierarchical set to true for the relation). Have you found a solution already?

  • sryzm Profile Picture
    sryzm 5 on at
    RE: Error when opening Hierarchy view of account entity in model-driven app

    I am having the exact same issue on the Business Unit table. recreated the hierarchy, and made a new quickview form. No joy. It used to work earlier and I'm trying to figure out what stopped working.

    One clue has to do with the toLowerCase in the error message, and it might be related to behind the scenes JS coming across a NULL value. The only place where a NULL exists is in the Parent Business Unit Lookup of the top level hierarchy record.  (i.e. This is by design because it cannot refer to itself). that's my guess but any help on what is actually going on and pointers to a fix is much appreciated.

    thanks in advance.

    pastedimage1676415336510v1.png

  • Junius01 Profile Picture
    Junius01 53 on at
    RE: Error when opening Hierarchy view of account entity in model-driven app

    The full error message is:

    Session Id: 1bd0c9b8-fcdb-4c23-b241-61ea29c3baa8

    Activity Id: 58efd68f-5679-45f5-ba88-c0bf99e66c00

    Timestamp: Tue Jan 10 2023 15:48:47 GMT+0100 (Central European Standard Time)

    Cannot read properties of undefined (reading 'toLowerCase')

    TypeError: Cannot read properties of undefined (reading 'toLowerCase') at eribel-dev.crm4.dynamics.com/.../sitemappanelactioninspector.js at eribel-dev.crm4.dynamics.com/.../sitemappanelactioninspector.js at v (eribel-dev.crm4.dynamics.com/.../sitemappanelactioninspector.js at eribel-dev.crm4.dynamics.com/.../sitemappanelactioninspector.js at A (eribel-dev.crm4.dynamics.com/.../sitemappanelactioninspector.js at l (eribel-dev.crm4.dynamics.com/.../sitemappanelactioninspector.js at eribel-dev.crm4.dynamics.com/.../app.js at Bo (eribel-dev.crm4.dynamics.com/.../app.js at Object.dispatch (eribel-dev.crm4.dynamics.com/.../app.js at Object.dispatch (eribel-dev.crm4.dynamics.com/.../app.js

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,409 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans