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)

Vendor Invoices - Charges Code & Vendor Ledger Dimension

(0) ShareShare
ReportReport
Posted on by 355

Hi all,

I have a charge code called FREIGHT set up with the following configurations. Under Credit, I've specified a ledger account of 4800.

Charges-Code.png

I now create a Purchase Order Invoice, confirm and go through the whole process, and then try to invoice / post it.

I'm presented the following error:

"The combination 4800- is not valid for the account structure MYACCOUNTSTRUCTURE"

 

So it's been identified that AX is attempting to use 4800 from the aforementioned charges code field MarkupTable.VendorLedgerDimension.

In the code, it crashes in the PurchFormLetter.run() method, and if I did further it goes into the SysOperationController\pack super(); class before it crashes.

Now, if I were to change my account from 4800 to for example 2100, then the invoice goes through fine, which is good.

My question, and what I need is to find out what class / where in the code is this happening during the invoice post process that AX is trying to use this MarkupTable.VendorLedgerDimension field. I need to access that part of the process and modify that value (obviously 4800 is just the display value) to be something else.

If anyone needs more information for background, I need to keep the account for FREIGHT at 4800, while setting the actual financial dimension to the financial dimension on the line item. I've been debugging and looking all over the place for where this process occurs, but have had no luck so far.

If anyone can point me in the right direction, it would be very greatly appreciated. 

Thank you.

*This post is locked for comments

I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    300,911 Super User 2025 Season 2 on at

    Hi,

    Chrck if the ledger account used for the item posting has dimensions enabled. If not, the dimension will be ignored. The markup is using the same dimension used in the item posting. So again: if the item posting has no dimension is lost during the posting process

  • Catalyst619 Profile Picture
    355 on at

    Hi André,

    We do not have the dimensions enabled for item posting, and the way the company is setup, it's not going to.

    What the company needs is a customization to change the markup logic from how it works now, to instead look at the financial dimension at the PO/Invoice line financial dimension.

    Do you happen to know which class handles this logic where the markup looks at the ledger account (4800) in the charge codes?

    Really appreciate the help. Thank you.

  • Verified answer
    André Arnaud de Calavon Profile Picture
    300,911 Super User 2025 Season 2 on at

    Hi,

    I have experienced this exact problem about 3 years ago. At that time I have seen it happening. I really can't remember which class/methods. I have seen that during the posting the dimensions were taken from the item posting instead of the purchase line. I thought the dimension of the ledger account for the posting type 'Purchase Expenditure, un-invoiced' was used. This is a posting that will be reversed at time of the invoice. Then for this account you can consider enabling the dimension as it should become 0. This is what we did at another customer. For the other types really used for inventory (product receipt) you can work without the dimensions.

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