Symptoms

Office 365 tab is absent in UX1 while subscription is purchased and provisioned. The following error message is represented in UX1:

Unknown error occurred

In CCPv1, different message appears:

Object reference not set to an instance of an object.

It can be seen from browser's debugger that the following request ends with "500 Internal Server Error":

https://pcp.contoso.com/aps/2/resources/7e1ab1e2-d105-49b0-8b05-c7599817ab57/tenant_domains

Cause

Required APS values initial_subdomain and bind_to_domain are not specified for any Office365/Tenant APS resources of customer.

For Office 365 18.4.1 and below, such inconsistency could be caused race condition. Provisioning of a new subscription and cancellation of a previous one were executed almost at the same time. It leads to situation when empty values for initial_subdomain and bind_to_domain are set when provisioning is finished:

2019-02-19 13:38:06,268 <5332> [  58] INFO aps_endpoint: -> Outgoing request Id 30dff744-51d8-4466-aed1-8932a36c9954
        PUT https://10.136.65.214:6308/aps/2/application/tenants/7e1ab1e2-d105-49b0-8b05-c7599817ab57/
Body:
{
  "initial_subdomain": "",
  "bind_to_domain": "",
  "ms_account_id": "8475ee6e-7bca-4047-b915-3b2b11e8601b",
  "is_activated": "yes",
  "format_phone_numbers_during_sync": false,
  "totalSeatsSold": {
    "limit": -1
  },

Such race condition is fixed in scope of request #APSA-20905 in Office 365 19.1 version of the application.

Resolution

Consider to schedule an upgrade of the application in order to avoid similar issue in the future.

Contact your Technical Account Manager or member of Pooled Technical Associate team in order to apply workaround on the current version of the application.

Internal content

Link on internal Article