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 :
Finance | Project Operations, Human Resources, ...
Unanswered

Function DimensionHierarchyHelper::getHierarchyTypeByAccountType has been incorrectly called.

(0) ShareShare
ReportReport
Posted on by 66

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

I have the same question (0)
  • GirishS Profile Picture
    27,827 Moderator on at

    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

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 584 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 499 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 254 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans