Symptoms

Office 365 domain removal task fails with the error:

APS Application Error: 
500 Internal Server Error
[ApplicationUnknownError] Unprovisioning: resource f2aeaa42-7418-4952-abe4-4685df43eb97 of type 'office365domains' (http://www.parallels.com/Office365/Domain/1.0) for APS application 'Office 365-16.6-43': Unable to remove this domain. Use Get-MsolUser DomainName <domain name> to retrieve a list of objects that are blocking removal. (Microsoft.Online.Administration.Automation.DomainNotEmptyException,Microsoft.Online.Administration.Automation.RemoveDomain).

Trying to create the domain again in CCP with internal DNS hosting gives the error:

Failed to create APS link

Cause

There is an active Office 365 subscription with services assigned to this domain.

Resolution

Two solutions are possible:

  1. Find and remove the subscription, using the domain.
  2. In case the Office 365 subscription should remain, and the domain was canceled by mistake, contact Odin Technical Support to apply a workaround and recreate the domain.

Internal content

Link on internal Article