Skype for Business – Move-CsRgsConfiguration : Object reference not set to an instance of an object.

During a side-by-side Lync 2013 to Skype for Business migration I encountered an error moving Response Groups using Move-CsRgsConfiguration.

Move-CsRgsConfiguration -Source lyncfepool.domain.local -Destination skypefepool.domain.local

This resulted in the error “Move-CsRgsConfiguration : Object reference not set to an instance of an object.”.  To resolve I ran Move-CsRgsConfiguration again with the -verbose switch:

Move-CsRgsConfiguration -Source lyncfepool.domain.local -Destination skypefepool.domain.local -verbose

Verbose output below:

VERBOSE: Performing the operation "Move-CsRgsConfiguration" on target
"service:ApplicationServer:skypefepool.domain.local/531286fe-e965-4c1c-9949-26eca4d8d3db".
VERBOSE: Handle audio files...
VERBOSE: Update associations with holiday sets...
VERBOSE: Update associations with managers...
Move-CsRgsConfiguration : Object reference not set to an instance of an object.
At line:1 char:1
+ Move-CsRgsConfiguration -Source lyncfepool.domain.local -Destination skyp ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : WriteError: (Microsoft.Rtc.R...lRgsDataContext:TransactionalRgsDataContext) [Move-CsRgsC
   onfiguration], NullReferenceException
    + FullyQualifiedErrorId : Microsoft.Rtc.Rgs.Management.MoveCsRgsConfigurationCmdlet

VERBOSE: Rollback transaction.

Next, I got the offending Response Group using Get-CsRgsWorkflow and the unique identification number from the Verbose output:

Get-CsRgsWorkflow | where {$_.identity -like "*531286fe-e965-4c1c-9949-26eca4d8d3db*"}

I then looked at this via the Response Group management portal (Control Panel > Response Groups > Workflow > Create or edit workflow) and it was apparent that it didn’t have queues associated with it and it was also disabled.  I deleted the workflow and re-ran Move-CsRgsConfiguration which was now successful.

2 Replies to “Skype for Business – Move-CsRgsConfiguration : Object reference not set to an instance of an object.”

    • Hi Erwin,

      I didn’t, after reading this blog post I steered away from the Export/Import in favor of Move-CsRgsConfig (Even though Microsoft state this should only be used from OCS/Lync 2010 to SfB………

Leave a Reply

Your email address will not be published. Required fields are marked *

*

This site uses Akismet to reduce spam. Learn how your comment data is processed.