web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

How to delete zip code from address setup

(0) ShareShare
ReportReport
Posted on by 7

Hello,

We have some bad zip codes and want to delete them. I have fixed the address with the bad zip codes in the global address book but when trying to delete the bad zip code from the address setup, I get an error message "ZIP/postal codes cannot be deleted while dependent Addresses exist. Delete dependent Addresses and try again.". I have already corrected the address with the bad zip code and cannot find an address with the bad zip code.

Is there somewhere else I should be looking, or am I maybe missing a step?

Thanks,

Paul 

  • Suggested answer
    André Arnaud de Calavon Profile Picture
    307,889 Super User 2026 Season 2 on at

    Hi Paul,

    When you change an address, it is not actually updating the address record, but it creates a new record and makes the old record inactive with a valid to date. The Addresses table has been enabled for date effectiveness to be able to keep the address history for audit purposes.

    For this reason, there are indeed still references in the Addresses table which would prevent you from deleting the Zip/postal codes.

    You can consider creating a custom x++ script to delete the wrong references form the Addresses table.

  • Paul Nalbandian Profile Picture
    7 on at

    Thanks for the reply.

    Please advise how we should handle the business case of bad data in the address validation tables.  This is a legitimate business case that we should be able to address without the need to database scripts.

    Thanks,

    Paul

  • André Arnaud de Calavon Profile Picture
    307,889 Super User 2026 Season 2 on at

    Hi Paul,

    Can you explain what exactly you are asking in your last reply? The fact is that you have bad data which can't be deleted due to the current data model design. To correct it, you would need a script (SQL or x++ runnable class) as we can't just change the Addresses table design.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 445 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 309 Super User 2026 Season 2

#3
CU29091230-0 Profile Picture

CU29091230-0 192

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans