Search Engine: Elastic

Article ID: 115314, created on Dec 18, 2012, last review on Apr 4, 2016

  • Applies to:
  • Operations Automation


OA cannot destroy customer subscription with Office 365 services, corresponding APS task fails with the following error from MOSI (Microsoft Onlise Services Interface):

Method del_customer calling failed. Reason:DomainNotEmptyFault Method: RemoveDomain

The main point in the error message above is the DomainNotEmptyFault error code. According to the MOSI SDK it means that there are users that are currently using the specified domain in their UPN (User Principal Name) or aliases.


During Office 365 subscription cancellation OA is trying to remove all domains delegated to Microsoft and the operation may fail if there are users in Office 365 which are still using the domain(s) in their UPN or aliases. It may happen if customer added users directly in MOP (Microsoft Online Portal) and OA is not aware about them.


If customer's subscription has to be completely destroyed then all users in MOP should be removed:

  • Log into MOP directly under customer account and remove all users which are absent in OA
  • Re-run the failed task in OA

caea8340e2d186a540518d08602aa065 5356b422f65bdad1c3e9edca5d74a1ae e12cea1d47a3125d335d68e6d4e15e07

Email subscription for changes to this article
Save as PDF