Symptoms

The readCSPAccounts.py script fails with the error:

"code": 500,
"message": "Value cannot be null.\r\nParameter name: source",

and error in the sitelog:

ERROR aps_endpoint: Office365AppController.GetImportDataForCustomers finished by exception System.ArgumentNullException: Value cannot be null.
Parameter name: source

Cause

Script readCSPAccounts.py has been taken from previous Office365 package version, i.e. from 16.8.5 while current installed version is 16.8.6.

Resolution

Obtain the script from the correct Office 365 package version.

Internal content