Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

ContactPerson table data cleanup

Posted on by Microsoft Employee

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

  • Blue Wang Profile Picture
    Blue Wang 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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans