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

Unable to Change Primary Address in OMLegalEntities – Configuration and Recommended Solution

(1) ShareShare
ReportReport
Posted on by 2

Hello,

I am encountering an issue on the Legal Entities form (OMLegalEntities) where I am unable to change an existing Primary Address toggle or set a newly created address as Primary.

Scenario

In my isolated Development environment, the address grid works as expected. I can create a new address record, and the UI allows me to toggle IsPrimary from No to Yes without any restrictions.

However, in our Pre-Production sandbox environment, which recently received a database refresh from Production, the behaviour is different:

  • The Primary column in the address grid is rendered as flat, read-only text with no interactive toggle.
  • When creating a new address record, the standard address creation wizard popup — "Do you want to make this address primary?" — does not appear.

Technical Investigation

We have confirmed that security permissions are not the issue. The form is fully in Edit mode, and other fields such as Street, Name, and Purpose remain completely modifiable in both environments.

We traced the framework validation rules down to the form handler layer, which interacts with:

DirParty::isPrimaryAddressChangeAllowed()

Based on our investigation, the method evaluates to false in the Pre-Production environment because it contains historical financial and posted subledger transactions copied from Production.

As a result, the framework dynamically suppresses the UI controls for changing the Primary address in order to protect historical reporting data.

Question

Our team lead prefers an out-of-the-box functional solution.

Is there any standard parameter, configuration switch, or functional setup available through the Dynamics 365 Finance and Operations GUI — for example, within Global Address Book parameters or Organization Administration — that allows us to bypass this validation and change the Primary address directly in a transactional sandbox environment?

If no functional GUI configuration or standard parameter exists to bypass this validation, what is the officially recommended best practice for updating the primary location/address structure of an active operational Legal Entity when the relevant UI fields are hardcoded as read-only?

We would appreciate guidance on the supported and recommended approach, particularly one that avoids directly modifying the underlying database or introducing unsupported customizations.

Thank you for your guidance.

Best regards,

Categories:
  • Suggested answer
    Adis Profile Picture
    6,902 Super User 2026 Season 2 on at

    Hi,

    Here are 3 ways to changed it - in the previous answer 3 answers are marked as verified. There is no parameter to bypass the validation.

    Solved: Change legal entity's PRIMARY Address

     

    Kind regards, Adis

     

    If this helped, please mark it as "Verified" for others facing the same issue

    Keep in mind that it is possible to mark more than one answer as verified

  • Martin Dráb Profile Picture
    240,744 Most Valuable Professional on at

    Moved from Integration, Dataverse, and general topics forum to Finance | Project Operations, Human Resources, AX, GP, SL forum.

     

    I wanted to check what DirParty::isPrimaryAddressChangeAllowed() method does, but I've found that no such a method exists in the standard application (10.0.48). Please double-check the name and then look at where it's defined. It may be coming from your customization or an ISV solution (the company developing it failed to use correct naming conventions). I also checked that the method doesn't exists in DirPartyTable either.

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

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

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

#1
Martin Dráb Profile Picture

Martin Dráb 429 Most Valuable Professional

#2
CU10121822-0 Profile Picture

CU10121822-0 366

#3
André Arnaud de Calavon Profile Picture

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

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans