"Object reference not set to an instance of an object" when trying to upgrade database

Version 1

    Introduction

    When upgrading a Management Center database to version 10.1 using the Server Configuration Portal (SCP) you receive the error message "Object reference not set to an instance of an object".

    Detail

    You can work around this error message by using Powershell to upgrade the database.

    Import-ApsInstanceModule -ProductName "AppSense Management Server"
    Get-ApsVariance

    If any variances are listed, use the following command to fix them:

    Repair-APSVariance -all

    Next, check for variances again:

    Get-ApsVariance

    If there are no variances listed you can then upgrade the database:

    Update-ApsDatabase -DatabaseConnection “ConnectionName