How to Change the Country, Region Code in Dynamics AX 2012

By Jason Erickstad | June 4, 2015

Recently we came across a situation in Dynamics AX 2012 where the Country/Region Code on the Legal Entity was set incorrectly. This caused an issue because when we generated a NACHA file the bank rejected it since it did not have the proper fields. Since there were transactions for this Legal Entity the system will not allow you to change the Country Code.

Edit Address

Since we were still in the testing phase and the system was not live we were able to run the class SysDatabaseTransDelete. When running this class it will delete all transactional data in the Legal Entity. Once the transactional data has been deleted you will be able to change the Country/Region Code on the Primary Business Address on the Legal Entity.

We also noticed that when we ran a Trial Balance we were still seeing amounts for the accounts. This can resolved by going to General Ledger | Setup | Financial Dimensions | Financial Dimension Sets and run Rebuild Balances on all the Financial Dimension Sets listed.

Related Posts


Under the terms of this license, you are authorized to share and redistribute the content across various mediums, subject to adherence to the specified conditions: you must provide proper attribution to Stoneridge as the original creator in a manner that does not imply their endorsement of your use, the material is to be utilized solely for non-commercial purposes, and alterations, modifications, or derivative works based on the original material are strictly prohibited.

Responsibility rests with the licensee to ensure that their use of the material does not violate any other rights.

Start the Conversation

It’s our mission to help clients win. We’d love to talk to you about the right business solutions to help you achieve your goals.

Subscribe To Our Blog

Sign up to get periodic updates on the latest posts.

Thank you for subscribing!