web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Financial dimensions from Bank account

(0) ShareShare
ReportReport
Posted on by 12

Hi All,

I'm creating the job to post Payment journal with offsetaccount type as 'Bank' and fetching the account(ledgerdimension) from 'retailstoretendertypetable' based on the 'Store'  value but the journal is not fetching the financial dimension against the bank account-In my case there's having the 'Cost center'  value against the bank account-that's not fetching and validating the journal is throwing the error as-'You must select a value in the CostCenter field in combination with the following dimensions values that are valid:'-help me to correct my code so that i can get the financial dimension inserted into journal lines

axLedgerJournalTrans.parmOffsetAccountType(LedgerJournalACType::Bank);
ledgerDimension=retailStoreTenderTypeTable.LedgerDimension;
axLedgerJournalTrans.parmOffsetLedgerDimension(ledgerDimension);

axLedgerJournalTrans.save();

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Community Member Profile Picture
    on at

    That error is because your COA (chart of accounts structure) doesn't have a valid combination with your financial dimensions when is doing the ledger posting.

    Create a new COA.

  • VV-22040800-0 Profile Picture
    12 on at

    Hi,

    COA setups are fine bcoz journal is getting validated without any error when creating through manual process-the issue is happening when trying to execute through job.

  • VV-22040800-0 Profile Picture
    12 on at

    Any help on the above issue ?

  • Suggested answer
    Community Member Profile Picture
    on at

    What is the ledgerdimension field in your retail table?

    you can try and use:

    ledgerJournalTrans.parmOffsetLedgerDimension(DimensionStorage::getDynamicAccount(SPLIngenicoConnections.BankAccountID, LedgerJournalACType::Bank));

    the DimensionStorage framework will help you to get the correct ledger dimension corresponding to you bank Account.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 16

#2
GiacomoRovai Profile Picture

GiacomoRovai 4

#3
Douglas Noel Profile Picture

Douglas Noel 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans