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 :
Microsoft Dynamics AX (Archived)

Error : Function DimensionHierarchyHelper::getHierarchyTypeByAccountType has been incorrectly called.

(0) ShareShare
ReportReport
Posted on by 411

Hello, 

I have to create a simple form for mapping purposes. For this purpose, I have created a custom table on which I have a field for ledger dimension (using EDT DimensionDynamicAccount). Note that custom table has saveDataPerCompany set to no. However, I still maintain a DataAreaId for company specific data. 

I have also created a relation between my custom table and DimensionValueAttributeCombination  as follows : 

NESSicoraxPayrollMapping.LedgerDimension = DimensionValueAttributeCombination.RecId

On the form, I have created a segmented entry control for the user to be able to enter the ledger dimensions.

Properties : 

1376.Capture.PNG

The issue I'm having is that my control does not display correct ledger dimensions according to company and that I am getting this weird error regarding AccountType. Is there something I am missing here ? Does accountType need to be passed to this segmented entry ? Shouldn't it be defaulted to Ledger ? 

2364.Capture_5F00_2.JPG

Thank you for your help :) 

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Ashwin Jugurnauth Profile Picture
    411 on at

    Update : I have been able to get rid of the error message , it was due to the Account Type Field property of my segmented control which was not set correctly and the incorrect dimension breakdown was due to a master data error ! For future reference, make sure that the account type parameter is correctly passed to the segmented entry control ^^ 

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 > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans