Exception "Function DimensionDefaultingEngine::constructForMainAccountId has been incorrectly called

27 Mar

While creating a General Journal and than post journal entries using X++, I received the following error message:
Function DimensionDefaultingEngine::constructForMainAccountId has been incorrectly called.

This issue occurs at below line of code while creating ledger dimension of specific ledger account


As per argument,we are passing a container of dimension values which convert a combination of a main account and financial dimension values into a ledger account RECID.So system trying to locate the record of the hierarchy of the current chart of accounts and with in account structure

When you check The account structure then you will find that Main account is not there.the error message is weird and  one can not understand through error that Main Account is missing from account structure.So system will be able to insert value only in case  if argument container “Main account and financial dimension values” are configured in ledger account structure.

Whenever a new ledger account is created, one should double check the account structure.


Tags: , , , ,

2 responses to “Exception "Function DimensionDefaultingEngine::constructForMainAccountId has been incorrectly called

  1. Altan Kalayci

    April 18, 2016 at 3:07 pm

    This post has been copied from:

    Remove it from your blog and if you find the original post useful provide a link.

    • Deepak Kalra

      April 19, 2016 at 4:31 am

      Thanks Altan for feedback.i have removed your content from blog that i referred.I faced this issue while uploading opening balances from third party application to ax.Please let me know if you have any more concern.Thanks again.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: