Article ID: 129689, created on Oct 26, 2016, last review on Oct 26, 2016

  • Applies to:
  • Operations Automation 6.0

Symptoms

The task Provisioning "Subscription" for APS application Office 365 fails with the output as below:

500 Internal Server Error
[ApplicationUnknownError] Provisioning: resource 969388d3-8882-4e1b-aa02-0e7febf70fd8 of type 'subscriptions' (http://www.parallels.com/Office365/Subscription/1.2) for APS application 'Office 365-6.4.1-8': Object reference not set to an instance of an object..

Body: {
"code": 500,
"message": "Object reference not set to an instance of an object.",
"additionalNonlocalizableMessage": "",
"error": "ApplicationUnknownError",
"http_request": "POST /O365App/aps/subscriptions to '10.0.0.11'"
}

The sitelog on the endpoint server contains entries indicating that it is unable to set up a password for the admin user:

2016-03-23 12:21:49,259 [ 212] DEBUG aps_endpoint: Going to set the password policy ForceChangePasswordNextLogin for the admin to FALSE
2016-03-23 12:21:49,259 [ 212] DEBUG flow        : CSP: Reset admin password policy of customer 'John Doe'
2016-03-23 12:21:49,259 [ 212] DEBUG flow        : CSP: Change admin password of customer 'John Doe'
2016-03-23 12:21:49,384 [ 212] ERROR aps_endpoint: SubscriptionsController.Post finished by exception System.AggregateException: One or more errors occurred.
2016-03-23 12:21:49,384 [ 212] ERROR aps_endpoint: System.NullReferenceException: Object reference not set to an instance of an object.

Cause

  1. The admin user's login was changed from admin@example.onmicrosoft.com to admin@example.com in Microsoft Online Portal

  2. The admin user's login was changed from admin@example.onmicrosoft.com to john@example.onmicrosoft.com in MOP

  3. The admin user's login admin@example.onmicrosoft.com was deleted in MOP

where example.onmicrosoft.com is an Office 365 3rd-level domain associated with the subscription.

Resolution

Either rename or recreate admin login in MOP back to the original one, so it would be as admin@example.onmicrosoft.com. Next, restart the failed task.

Search Words

Object reference not set to an instance of an object

Object reference not set to an instance of an object..

Provisioning "Subscription" for APS application Office 365

InvalidOrderIdFault

5356b422f65bdad1c3e9edca5d74a1ae caea8340e2d186a540518d08602aa065 e12cea1d47a3125d335d68e6d4e15e07 956c448bddc7e1f3585373687602379f 6f1456866eed87488c0f02b298a741c0

Email subscription for changes to this article
Save as PDF