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 :
Microsoft Dynamics AX (Archived)

ContactPerson table data cleanup

(0) ShareShare
ReportReport
Posted on by

Hi,

The CONTACTPERSON table has 6 million records and most of them are duplicates. We are planning to migrate data from AX2009 to D365, before migrating this table, we wanted to make sure that duplicates in CONTACTPERSON table are deleted. I tried relating this table with CUSTTABLE, VENDTABLE ,PURCHTABLE ,SALESTABLE ,SMMBUSRELTABLE. But there are only 50,000 records in common. When I tried comparing CONTACTPERSON table with DIRPARTYTABLE, almost 5.9 million records were in common for both these tables based on PartyID column. Can someone help me, how to find and clear these duplicates in CONTACTPERSON table.

*This post is locked for comments

I have the same question (0)
  • Blue Wang Profile Picture
    on at
    RE: ContactPerson table data cleanup

    Hi DevInspirer,

    Find out why you duplicate data in your table and identify which fields are duplicated.


    Walk through these fields and sort them, then delete them from the second duplicate data.

    You can refer code: https://shyamkannadasan.blogspot.com/2018/03/how-to-delete-duplicate-records-through.html

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…

Mansi Soni – Community Spotlight

We are honored to recognize Mansi Soni as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Syed Haris Shah Profile Picture

Syed Haris Shah 9

#2
Mea_ Profile Picture

Mea_ 4

#3
KP-31070522-0 Profile Picture

KP-31070522-0 3

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans