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)

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

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