# Delete duplicate records in Address Table in AX 2009

**URL:** <https://www.dynamicsuser.net/t/delete-duplicate-records-in-address-table-in-ax-2009/55236>\
**Category:** Technical Forum\
**Created:** [October 8, 2014, 8:50am UTC](https://www.dynamicsuser.net/t/delete-duplicate-records-in-address-table-in-ax-2009/55236 "2014-10-08T08:50:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![raghu123](https://avatars.discourse-cdn.com/v4/letter/r/96bed5/32.png) [@raghu123](https://www.dynamicsuser.net/u/raghu123)\
**Post date:** [October 8, 2014, 8:50am UTC](https://www.dynamicsuser.net/t/delete-duplicate-records-in-address-table-in-ax-2009/55236/1 "2014-10-08T08:50:07Z")

</div>

Hi all,

I got an issue in Dynamics AX 2009 i.e., Addresses are duplicated.

That means we can see more than one address for same AddrRecid and same type.

we need to delete the records based on AddrRecid and type

see this pic for clear idea

Thanks

Ram

---

<div class="post-metadata">

**Author:** ![prabu\_venkatesh](https://avatars.discourse-cdn.com/v4/letter/p/779978/32.png) [@prabu\_venkatesh](https://www.dynamicsuser.net/u/prabu_venkatesh)\
**Post date:** [October 8, 2014, 9:21am UTC](https://www.dynamicsuser.net/t/delete-duplicate-records-in-address-table-in-ax-2009/55236/2 "2014-10-08T09:21:54Z")

</div>

Hi

Please refer the below links. Might be useful.

[http://support.microsoft.com/kb/973555](http://support.microsoft.com/kb/973555)

[http://daxture.blogspot.in/2011/12/delete-duplicate-records-from-table.html](http://daxture.blogspot.in/2011/12/delete-duplicate-records-from-table.html)

Prabu

---

<div class="post-metadata">

**Author:** ![raghu123](https://avatars.discourse-cdn.com/v4/letter/r/96bed5/32.png) [@raghu123](https://www.dynamicsuser.net/u/raghu123)\
**Post date:** [October 8, 2014, 9:30am UTC](https://www.dynamicsuser.net/t/delete-duplicate-records-in-address-table-in-ax-2009/55236/3 "2014-10-08T09:30:01Z")

</div>

Hi prabhu,

Thanks for your reply, that code dose not suite for my requirement.

In my case duplicate address are created because of Virtual company concept

Thanks

---

<div class="post-metadata">

**Author:** ![raghu123](https://avatars.discourse-cdn.com/v4/letter/r/96bed5/32.png) [@raghu123](https://www.dynamicsuser.net/u/raghu123)\
**Post date:** [October 8, 2014, 10:03am UTC](https://www.dynamicsuser.net/t/delete-duplicate-records-in-address-table-in-ax-2009/55236/4 "2014-10-08T10:03:17Z")

</div>

Hi all,

Please tell me some piece of code in ax 2009 to solve this issue.

Thanks.
