Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

Tool to empty Ledger entries in NAV 2013

Posted on by Microsoft Employee

Does anybody know if there is a tool that would put all the ledger entries and registers back to blank so we can copy an existing company in a new one without the transactions?

*This post is locked for comments

  • Suggested answer
    Jens Glathe Profile Picture
    Jens Glathe 6,092 on at
    RE: Tool to empty Ledger entries in NAV 2013

    Hi,

    I ran into problems when I tried to delete tabledata in 2013R2. As it turned out, there is a bug in the "table information" object that prevented my report from finishing... whoopsie. Thankfully I got some help from Microsoft with this and we found a workaround. I have attached the object, you can take ist as a template. All warnings from Aleksandar apply to this one, too. :)

    with best regards

    Jens

    https://community.dynamics.com/cfs-file.ashx/__key/communityserver-discussions-components-files/34/4606.report_5F00_0005274900.txt

  • Suggested answer
    Aleksandar Totovic Profile Picture
    Aleksandar Totovic 16,765 on at
    RE: Tool to empty Ledger entries in NAV 2013

    The better solution is to prepare configuration packages and then migrate these data to the new database or company.

    But, if you must to delete data from ledger and other tables, you can do it using report. In DataItem of this report, you need to fill all tables you want to delete. For each DataItem, in C/AL editor, in OnPreDataItem(), you need to write: DELETEALL;

    You need to be carefully with this and important thing is that you must use partner license for this process.

  • ArnoldS Profile Picture
    ArnoldS 604 on at
    RE: Tool to empty Ledger entries in NAV 2013

    What NAV version are you using?

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Tool to empty Ledger entries in NAV 2013

    Not exactly a tool to delete transactions, but what I have started doing for NAV 2013 is to use the configuration packages to do what I think you want to do.

    It takes a day or two to set them up, but once you have them you can reuse them.

    If you create one for the Setup tables and one for the Master data tables, then instead of deleting transactions, you can extract everything except the transactions and import it back into a new company.

    Just a thought. I think it works ok, if you have large amount of master data records then it could be a bit slow.  

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