Fix an exception of type Microsoft.Online.BOX.Util.Exceptions.InternalException (EXOBadRequest)
Finally figured it out…
I had a client for whom we purchased a new domain name.
They then wanted an email address associated with that domain so we purchased an Exchange Online (Plan 1) through Microsoft.
Once the Microsoft account was setup, I fully and successfully connected that new domain name to their Microsoft account. However, when I would try to swap out their default onmicrosoft.com username for their domain it would throw the following error:
An exception of type Microsoft.Online.BOX.Util.Exceptions.InternalException (EXOBadRequest) was thrown.

Besides the fact that the provided error was completely useless, the system would automagically sign me out.
This had happened to me once before when I attempted to switch over my business email services over to Microsoft. But, even with Microsoft Support guiding me, we were not able to address it and they simply refunded me.
Turns out the issue is simple, when one signs up in this fashion you must first unassign the Exchange Online (Plan 1) license from the onmicrosoft.com account. Then you can create a new user and assign the license to that account which should be your new email at your new domain name.
Conclusion
I hope my article on why you can’t swap out your onmicrosoft.com domain has helped you. I welcome your thoughts, questions or suggestions regarding this article.
You may support my work and future improvements by sending me a tip using your Brave browser or by sending me a one time donation using your credit card.
Let me know if you found any errors within my article or if I may further assist you by answering any additional questions you may have.



