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 :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Replacing main account in ledger dimension

(1) ShareShare
ReportReport
Posted on by 46

hello,
I tried this method: 

GeneralJournalAccountEntry GTabl;

ttsbegin;

update_recordset GTabl
setting LedgerDimension = LedgerDimensionFacade::serviceCreateLedgerDimension(LedgerDefaultAccountHelper::getDefaultAccountFromMainAccountId('200999'),LedgerDimensionFacade::getDefaultDimensionFromLedgerDimension(GTabl.LedgerDimension)) where GTabl.RecId==5637145040;

ttscommit;

to change the main account of ledger account but it's not working .

thanks

kind regards

I have the same question (0)
  • L Profile Picture
    31 on at

    Hi Mariam,

    I want the same solution.

    Kind regards

  • Suggested answer
    André Arnaud de Calavon Profile Picture
    305,196 Super User 2026 Season 1 on at

    Hi MariamW, ChahrazadK,

    The GeneralJournalAccountEntry table contains posted transactions. It is not allowed to just change the contents of this table using a script. This is according to international accounting rules. Or do you have permissions from an external auditor to do so? When making this change, you will create inconsistencies with the DimensionFocusBalance table and the Financial Reporter might not be aware of it. If the entry comes from a subledger, then also other table references will have incorrect data.

    My recommendation would be to create a reversing entry and then post the correct entry.

  • MariamW Profile Picture
    46 on at

    hello Thank you very much for your answer.

    I just want to know , How do I find the Main account linked to items to set conditions and replace it with another Main 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 April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 692

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 532 Super User 2026 Season 1

#3
CP04-islander Profile Picture

CP04-islander 478

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans