Skip to main content

Notifications

Microsoft Dynamics CRM forum
Unanswered

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

Posted on by 45

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!

Categories:
  • 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 45 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

Helpful resources

Quick Links

Contextual content recommendations & SharePoint Q&A

Instantly access relevant sales materials…

Beyond the DRA Cloud Label Printing

Explore cloud-based label printing within Dynamics 365…

HR Infrastructure Customer merge

Important considerations for HR Customer migrations…

Leaderboard

#1
Andre Arnaud de Calavon Profile Picture

Andre Arnaud de Cal... 283,418 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 223,631 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,142

Featured topics

Product updates

Dynamics 365 release plans