Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

Function DimensionHierarchyHelper::getHierarchyTypeByAccountType has been incorrectly called.

(0) ShareShare
ReportReport
Posted on by 64

hi,

I am getting below error while opening any journals

The menu item with name ledgerjournaltable3 could not be opened.

However the infolog states " Function DimensionHierarchyHelper::getHierarchyTypeByAccountType has been incorrectly called."

This can be opened from General ledger > Journal entries > General journals.
and this happens with most of the journal forms .ledgerjournaltabl1-5 .

I think this is a data related issue however I need to understand what the actual issue is and share the inputs to the functional to fix the data.

Had someone faced this issue before.

Thanks.

VK

  • GirishS Profile Picture
    27,823 Moderator on at
    RE: Function DimensionHierarchyHelper::getHierarchyTypeByAccountType has been incorrectly called.

    Hi vicky,

    Have you navigated to the method you mentioned?

    On the method "getHierarchyTypeByAccountType" - They are using the switch case for the Enum type which is passed from the arguments.

    I think If none of the Enum exist in the switch case than this error will be thrown.

    You can debug and check what is the value of EnumId which is in the parameter.

    At last, they are throwing the error you mentioned.

    Refer to line number 503 and 504.

    Thanks,

    Girish S.

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... 293,280 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,038 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans