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