Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

Clear all posted entries in NAV 2013R2

Posted on by 422

Hi, I have test DB where I test new requirements. So, I use to post sales, purchases, ledgers..etc.

Now, i am thinking to clear all the posted entries(ILE,Value entries, GL Etnries .etc).

is there any simple way to do this in NAV 2013R2

Abdul

*This post is locked for comments

  • Verified answer
    Alexander Ermakov Profile Picture
    Alexander Ermakov 28,094 on at
    RE: Clear all posted entries in NAV 2013R2

    Try out this good tool: www.olofsimren.com/record-deletion-tool-for-dynamics-nav-2015 and similar tools.

  • AbduTeeyech Profile Picture
    AbduTeeyech 422 on at
    RE: Clear all posted entries in NAV 2013R2

    thank you Amol. fine,, i was wondering if i have to concentrate other parts nav as well when i delete these tables. now, i'll go straight and delete using codes, or the objects as Mahesh advised.

    thanks again.

  • Verified answer
    Amol Salvi Profile Picture
    Amol Salvi 18,694 on at
    RE: Clear all posted entries in NAV 2013R2

    May be you can write code as following in CU or report.

    laTableID[1] := 32;

    FOR lvLoop := 1 TO 1 DO

    BEGIN

     ltRecordRef.OPEN(laTableID[lvLoop]);

     ltRecordRef.DELETEALL();

     ltRecordRef.CLOSE;

     COMMIT;

    END;

    Define variables

    Name       DataType

    ltRecordRef RecordRef

    laTableID Integer

    lvLoop Integer

  • AbduTeeyech Profile Picture
    AbduTeeyech 422 on at
    RE: Clear all posted entries in NAV 2013R2

    Hi Amol, is it okay if i delete those from SQL queries?

    or I write simple codes to delete all for those tables in C/AL?

    no need to check any linked entries, validations etc.?

  • AbduTeeyech Profile Picture
    AbduTeeyech 422 on at
    RE: Clear all posted entries in NAV 2013R2

    Thank you Mahesh & Amol,

    And, Mahesh, I hv imported those objects from the link, but i get permission error while

    i run that page.

    5555555.JPG

    i put permission manually for those as well, still same

    5555555.JPG

    this s strange why NAV asks 'execute permission' for table? not for page.

  • Verified answer
    Amol Salvi Profile Picture
    Amol Salvi 18,694 on at
    RE: Clear all posted entries in NAV 2013R2

    You need to write a code to delete the record from ledger tables.

  • Verified answer
    mmv Profile Picture
    mmv 11,465 on at
    RE: Clear all posted entries in NAV 2013R2

    I don't think there's an easy way out.  You need to have a customized solution, perhaps a report.

    Below may give you some idea:-

    https://community.dynamics.com/nav/b/olofsimrendynamicsnavblog/archive/2014/11/17/record-deletion-tool-for-dynamics-nav-2015

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