web
You’re offline. This is a read only version of the page.
close
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!

I have the same question (0)
  • Junius01 Profile Picture
    53 on at

    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

  • sryzm Profile Picture
    5 on at

    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

  • Thomas Fuchs Profile Picture
    5 on at

    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?

  • Community member Profile Picture
    2 on at
    Hi,
    I have the same error, did you find a solution?
    Thanks
  • BC-14061612-0 Profile Picture
    2 on at
    I am also getting this error.
  • PK-13011209-0 Profile Picture
    3 on at
    Have anyone found a solution to this issue? Started to experience same thing recently while trying to access ORG CHART functionality.

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 108 Super User 2025 Season 2

#2
Jimmy Passeti Profile Picture

Jimmy Passeti 50 Most Valuable Professional

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 49 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans