Truncate entity list in Dynamics 365 Finance and operations

Truncate entity list in Dynamics 365 Finance and operations 1

Truncate entity list in Dynamics 365 Finance and operations

Recently, Microsoft introduced truncate entity list in Dynamics 365 F&O. With this option, user can truncate all entities in Dynamics 365 F&O without writing any SQL script or x++ code.

What is truncate entity list

Sometimes, while doing deployment or development we get an issue with the entity, and we need to delete the entity from the Data management or SQL database. With this option, it will delete all entities from the system. Once this operation is completed then we need to refresh entity list to load all entities in the system.

Pre-requisite

You must need at least 10.0.28 version installed in the system

image 13

Step 1: First go to Data management > Framework parameters

image 14

Step 2: Go to Entity settings and click on Truncate entity list

image 15

Once you clicked on truncate entity list then wait for a while

image 10

Once the operation is completed then you will see all entities are deleted from the Data entities.

image 11

Step 3: Click on refresh entity. This will refresh all entities in the system.

Note: This will take some time to load all entities.

image 12

Once the entities are refreshed, you can see all entities are loaded in the system.

image 16

Now, you can perform your Data management related activity.

If you dont have this version, then you can truncate entity list via X++ job or SQL query.

You need to truncate 4 tables.

  • DMFEntity
  • DMFTargetXML
  • DMFTargetXMLToEntityMap
  • DMFTargetEntityHierarchy
truncate table DMFEntity
truncate table DMFTargetXML
truncate table DMFTargetXMLToEntityMap
truncate table DMFTargetEntityHierarchy

If you like this article, feel free to share it with others who might find it helpful! If you have any questions, feel free to reach out to me.

Parag Chapre

Parag Chapre is a Microsoft MVP in the fields of Dynamics 365 Finance & Operations, Human Resources, and Power Platform, recognized for his outstanding contributions to the Microsoft Dynamics community.

With over 15 years of hands-on expertise in various Microsoft Dynamics 365 areas, Parag has designed and delivered complex, innovative solutions for customers across industries and geographies. He has also provided leadership and technical guidance to project teams, managed offshore and onshore resources, and worked closely with Microsoft Product teams. Parag is passionate about sharing his knowledge and insights through his personal website, blog posts, articles, and community events. He is a member of the Microsoft Biz Apps Community Advisory Board, a Dynamics 365 Human Resource Community star, a Dynamics 365 Community contributor, and a Dynamics 365 Community Spotlight honoree.

3 Comments

Leave a Reply