Keeping It Clean: The 4 Layers of Business Central House Cleaning

Earlier this year, I wrote an article about deleting expired Sales Quotes. I started thinking about all the useful tools Business Central provides for good housecleaning. I’ll cover some in this article.

There are two primary reasons for housecleaning on your BC system.

  1. Operational Tidiness: Removing stale or obsolete documents from the system.
  2. Database Management: Reducing database size, which, in turn, can result in lower storage costs while speeding up system responsiveness.

There are four layers of housecleaning tools. Layers 1, 3, and 4 are more about general housecleaning and system cleanliness. Layer 2 is more about database size and saving on storage costs. All four layers help maintain system response time efficiency.

Layer 1: Operational Tidiness

Removing open and incomplete documents that are no longer required can create a clean and efficient system for your users. There is a series of ā€œDeleteā€ batch jobs that can be run manually or added to the Job Queue. You can find many of these by searching the ā€œData Administrationā€ page and some of these can be scheduled using the Job Queue. Processes that do not require a specific date parameter can be scheduled.

  • SALES
    • Delete Expired Sales Quotes
    • Delete Invoiced Blanket Sales Orders
    • Delete Invoiced Sales Orders
    • Delete Invoiced Sales Return Orders
  • PURCHASING
    • Delete Invoiced Blanket Purchase Orders
    • Delete Invoiced Purchase Orders
    • Delete Invoiced Purchase Return Orders
  • SERVICE
    • Delete Invoiced Service Orders
  • WAREHOUSE
    • Delete Registered Warehouse Documents
  • MARKETING
    • Delete Campaign Entries
    • Delete Logged Segments
    • Delete Opportunities
    • Delete Tasks
    • Delete Integration Log Entries

Layer 2: Data Compression of Historical Posted Entries

These functions can also be found on the Data Administration page. Data Compression is not always advised and should be discussed with your BC partner because data compression is an irreversible process. It consolidates old ledger entries into summary entries and deletes the original entries. You can opt to archive data entries before they are compressed. Only entries from fiscal years closed for at least five years can be compressed.

Layer 3: Retention Policies (Log, System, and Temporary Tables)

Retention Policies were introduced in BC 17 (2020 Wave 2). You can define how often BC auto-deletes outdated data in tables that hold log entries and archived records. This process runs on the Job Queue; you can decide which tables (from a Microsoft-provided list) to include. You also decide how long to keep records in those tables. A single job queue entry (CodeUnit 3997 Retention Policy JQ) will be automatically added to the job queue and will handle all your defined enabled retention policies.

BONUS TIP: Create a data retention policy for the Retention Policy Log (table 3905).

Layer 4: Master Data & Setup

This layer requires the most manual effort but has an immediate impact on your daily users. Blocking obsolete master data reduces risk of accidental postings and can help declutter your system, especially if your users use filtered lists to find only active customers, vendors, items, and accounts.

This is the manual review and blocking of master data – items, customers, vendors, G/L accounts. You don’t want to delete master data because historical transactional data will reference obsolete master data. Other areas to review include Empty journal batches, unused companies, and Analysis Views – making sure they are current.

Making Housecleaning a Habit

System hygiene in Business Central must be an ongoing discipline – not a one-time event. Try building a routine to keep your system clean and efficient.

  • Automate & Schedule: Using the Job Queue, automate and schedule what you can. For cleanup processes that cannot be automated, add a weekly or period-end reminder to your calendar.
  • Delegate & Audit: Review Master data monthly or quarterly. Make sure each master data table has an owner who can spend 30 minutes to run through the layer 4 activities. If your system requires a deep cleaning before you establish a routine, put committees together to review and cleanse your data.
  • Analyze & Strategize (Annually): Review your database size and growth. In Business Central, search ā€œTable Informationā€ to review your table sizes and number of records in each table. There is a link on the Table Information page to open the Data Administration page where you have many of the tools needed to manage your data cleanup efforts. Connect with your Business Central partner if you need help understanding or building a strategy to manage your system growth.

To learn more or have any questions answered, please reach out to me or post your questions and comments on the Dynamics Communities discussion board.


Welcome to our new site!

Here you will find a wealth of information created for peopleĀ  that are on a mission to redefine business models with cloud techinologies, AI, automation, low code / no code applications, data, security & more to compete in the Acceleration Economy!