Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

Financial dimensions from Bank account

Posted on by 326

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

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Financial dimensions from Bank account

    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.

  • VV-22040800-0 Profile Picture
    VV-22040800-0 326 on at
    RE: Financial dimensions from Bank account

    Any help on the above issue ?

  • VV-22040800-0 Profile Picture
    VV-22040800-0 326 on at
    RE: Financial dimensions from Bank account

    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.

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Financial dimensions from Bank account

    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.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans