Skip to main content

Notifications

Dynamics 365 Community / Forums / Finance forum / How can we delete lega...
Finance forum

How can we delete legal entity ?

Posted on by 739

Dear all,

           How I can delete the legal entity with all transactions from MSDyn365FO tenant ? in details process without any effect on the other legal entity in the same tenant such dimension, items et cetera  , thanks.

  • AMdZ Profile Picture
    AMdZ 50 on at
    RE: How can we delete legal entity ?

    Found the answer myself and I publish to all for future reference. Go to the MainAccountLegalEntity and delete all records referring to the company you want to delete.

  • Suggested answer
    AMdZ Profile Picture
    AMdZ 50 on at
    RE: How can we delete legal entity ?

    Hi Andrè,

       I have a very similar error "Legal entities cannot be deleted while dependent Main account legal entity exist. Delete dependent Main account legal entity and try again." but we deleted all reference we know about and we also emptied the ledger. Any idea? If I can delete the chart of accounts I should have the ability to delete the company. No transactions have been performed and we don't have the company in hierarchies.

    Any idea is very welcome

  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 291,134 Super User 2024 Season 2 on at
    RE: How can we delete legal entity ?

    Hi Hisham,

    You can find out the name of the table and then check if there are indeed records in this table which related to the legal entity you want to delete. You have to delete these records first. Test it in a test environment first.

  • Hisham Alsayed Profile Picture
    Hisham Alsayed 739 on at
    RE: How can we delete legal entity ?

    Hi Andre,

                Kindly, i received this error while i run class to delete the legal entity on VM

    Legal entities cannot be deleted while dependent General ledger entry provider configurations exist. Delete dependent General ledger entry provider configurations and try again.

    Could you advise please? , thanks

  • Verified answer
    André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 291,134 Super User 2024 Season 2 on at
    RE: How can we delete legal entity ?

    Hi Hisham,

    There is no change in this area compared to AX2012. To be sure, it is recommended to rebuild the balances.

  • Hisham Alsayed Profile Picture
    Hisham Alsayed 739 on at
    RE: How can we delete legal entity ?

    Hi Mav,

    Thanks on your update ,it was helpful for me but do you know what is the steps to check the instance after delete the legal entity ? should i do rebuild for dimensions like we was doing with AX2012 ?, thanks.

    Greetings,

    Hisham.

  • Suggested answer
    Mav Profile Picture
    Mav on at
    RE: How can we delete legal entity ?

    You may want to check this forum

    community.dynamics.com/.../261892

    And BTW i just checked that SysDatabaseTransDelete is available in d365 release 8.0.

    Pls remember to mark verified if it resolved your query.

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 229,928 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans