this looks to me like a server side issue related to saving the main user object (not addresses). This is a good find. I'm going to create a separate bug for it.
Michal Kuklis July 6, 2017 at 12:20 PM
Thank you for finding this ! I will review it now.
Overview: Changing the primary address selection on the edit user page results in an error
Steps to repro:
Log into folio testing
Create a new user
Give them 2 addresses
Make the bottom one primary
Save new user
Edit new user by clicking edit icon to take you to full edit mode
Select the other address as primary and deselect the current one
Save record
Expected: Change should be saved without error
Actual: Attached error is shown