Microsoft Account Problem

I kept getting an error on login saying something like “Microsoft Account Problem. We need to fix your Microsoft account before you can use shared experiences. Select this message to fix things.” I had two Microsoft accounts associated with my PC and just had to remove the offending one that I no longer used from “Settings > Accounts > Email & app accounts.”