D365 Finance & Operations and Dynamics AX Forum

Expand all | Collapse all

Batch job cleanup - retention period

  • 1.  Batch job cleanup - retention period

    Posted 9 days ago
    Hello all,

    We are running D365FO v10 pu26.   We are looking to setup the auto cleanup of batch jobs.  Is there a best practice established for the amount of days to keep batch history on the system?   It looks like Microsoft defaults the job to 30 days.  Thanks!




    ------------------------------
    Cindy St. John
    Libbey, Inc.
    Toledo OH
    ------------------------------


  • 2.  RE: Batch job cleanup - retention period

    GOLD CONTRIBUTOR
    Posted 2 days ago

    Hi Cindy,

    Thank you for posting! I am also interested in this topic. Hopefully, someone will share their knowledge here.



    ------------------------------
    Seth Greenberg
    Supply Chain Manager
    Hamamatsu Corporation
    Middlesex NJ
    ------------------------------



  • 3.  RE: Batch job cleanup - retention period

    SILVER CONTRIBUTOR
    Posted 2 days ago
    I don't know how much batch job creation has changed from 2012 CU3 to D365, but to delete log files has been a manual step, or by creating a batch job to do it for you.  Following a is good article on this subject with sample code to create a batch file for winnowing out old batch job logs:   https://www.kevinroos.be/2017/07/dynamics-ax-2012-history-cleanup/

    ------------------------------
    Dan Cantley
    Systems Analyst
    Bedrock Manufacturing Co, LLC
    Detroit MI
    ------------------------------



If you've found this thread useful, dive deeper into User Group community content by role