Symptoms

Office365 (APS 1.2) task fails:

Task name   Provisioning "Tenant" for APS application Microsoft Office 365

Last execution output   
Internal error: 
500 Internal Server Error
[ApplicationUnknownError] The customer does not exist.

In sitelog on MOSI gateway server you can see entries like:

2015-01-16 09:23:31,467 [  23] DEBUG aps_endpoint: Executing TenantsController.Post
2015-01-16 09:23:31,467 [  23] DEBUG aps_endpoint: Parameters of TenantsController.Post: ({
2015-01-16 09:23:32,933 [  10] DEBUG flow        : Connecting Microsoft Online Service...
2015-01-16 09:23:34,228 [  23] ERROR mosi-clients: <<< ValidateOrder by exception
System.ServiceModel.FaultException`1[www.microsoftonline.com.MOSI._1._01.messages.CustomerDoesNotExistFault]: CustomerDoesNotExistFault (Fault Detail is equal to www.microsoftonline.com.MOSI._1._01.messages.CustomerDoesNotExistFault).
2015-01-16 09:23:34,228 [  23] ERROR aps_endpoint: Method TenantsController.Post calling failed. Reason:The customer does not exist

Cause

There is existing entry in account_id table of MOSI database due to the previous task execution attempt, canceled tasks or incorrect subscription removal.

Resolution

Please contact Odin Technical Support.

Internal content

Link on internal Article