The ERP UI allows two addresses of the same address type to be marked as primary

In the Directory table, it’s possible to check more than one primary address in the ERP UI for the same address type (Main). Is there supposed to be a validation for this? Even after saving, no error message is shown and saves it, although one of the primary address selections is automatically removed, which is fine.

Hi Mayank — yes, this is expected.

There is no validation for this, and the unmarking of one of the address as “no longer primary” is special handling we do on save. Having two primary address of overlapping types is not permitted and so we honor the last choice made. This behavior also allows records and their address information to be updated via our integration process since the another potentially conflicting address record isn’t as readily available.