Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Duplicate record in addresszipcode table.

(0) ShareShare
ReportReport
Posted on by 890

Hi,

I am having duplicate record in my table addresszipcode, which shouldnot happen. So, is there any method by which i could restrict it at the table level.

Regards,

*This post is locked for comments

  • Saurabh P Singh Profile Picture
    Saurabh P Singh 890 on at
    Re: Duplicate record in addresszipcode table.

    Hi Brandon Wiese,

    Thanks alot for the help.

    Regards,

  • Verified answer
    Brandon Wiese Profile Picture
    Brandon Wiese 17,788 on at
    Re: Duplicate record in addresszipcode table.

    Unfortunately ZipCode is not a unique key in the AddressZipCode table as you might think.  First, different countries could use the same ZipCode, and that's valid, so at the very least you might find the same ZipCode used with different CountryRegionId's.

    But, the design of the AddressZipCode table goes further and provides fields like StreetName and FromNum, ToNum, and EvenOdd which are used to describe street-level ZipCode usage.  While it is flexible enough to allow for the full ZIP+4 data set in the United States, for example, it is simply not smart enough to use the data usefully.  That, and the data set is massive (>30 million records).

    If you want to use ZipCode unique, simply create an Index on CountryRegionId and ZipCode, make it unique (set AllowDuplicates to No), and that will enforce the restriction at the table level.

  • Saurabh P Singh Profile Picture
    Saurabh P Singh 890 on at
    Re: Duplicate record in addresszipcode table.

    It's Ax 2009, Actually each value in the addresszipcode table is being repeated.

  • Brandon Wiese Profile Picture
    Brandon Wiese 17,788 on at
    Re: Duplicate record in addresszipcode table.

    What version of AX?

    What type of duplicate?  Same zipcode on multiple records?  RecId conflict?

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,494 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,309 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans