web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

Looking for the advise to purging the data for few tables

(0) ShareShare
ReportReport
Posted on by 60

Hi All,

I'm working on purging the data for a few tables of D365FO that include custom tables too. I would like to know from you if there is any impact on day to day activities by truncating the data for certain periods (ex: 30/60/90/365 days and soon).

 
Apart from the below list, are there any other tables where we can purge the data that doesn't have any impact day-to-day business process or functionality?
Here are list of tables:
BOMCalcTrans,
Batch,
Costsheetcache,
batchhistory,
whsworkusersessionlog,
docuhistory,
whswaveexecutionhistory,
sessionrecoverablestategenerictable,
whsworkscreatehistory,
ecoresreleasedproduct2staging,
inventtrans,
generaljournalaccountentry,
inventdim,
whsworkline,
inventitemprice,
jmgchangelog,
whswavemethodstatus,
DTA_input,
batchjob,
inventsum,
inventitemcostgrouprollup,
ledgerjournaltrans,
securityobjecthistory,
inventtransorigin,
generaljournalentry,
syslastvalue,
inventcosttrans,
vtxxmlfiles,
dimensionvaluedeleteaudit
I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    298,643 Super User 2025 Season 2 on at
    RE: Looking for the advise to purging the data for few tables

    Hi Chandra,

    Martin provided already a valuable reply. In general, Microsoft provides cleanup tasks for tables which are supported to be cleaned up. E.g. there is a task called Inventory Dimensions Cleanup to delete InventDim records which are not referenced on any transaction. There is also a job to move InventTrans records to a historical transactions tables: Feature trial: Inventory transactions archive - Dynamicspedia.

    Like Martin, I'm quite concerned about auditability and consistency if you would try to delete records yourself. Instead, if you encounter database size or performance issues, you could contact Microsoft Support.

  • Martin Dráb Profile Picture
    236,166 Most Valuable Professional on at
    RE: Looking for the advise to purging the data for few tables

    It depends a lot in what you mean by "to purge". Your list include several critical tables and removing data from them would likely make your system unusable. You would lose information about available quantity of all items (InventSum) and about inventory transactions, all tables using inventory dimensions (such as color or warehouse) would lose the information and would become unusable (because of deleting InventDim data), you lose accounting data (GeneralJournalEntry / GeneralJournalAccountEntry) and so on. I would recommend not touching these tables at all, and if you really want, you must be extremely careful. Even if you believe that you don't need some data anymore, think about audting reasons, that you may need to return orders even several years old and so on.

    On the other hand, there are tables in your list that you can purge without any issue, such as EcoResReleasedProduct2Staging.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 2,340

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 835 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 640 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans