Lync 2013 – Import-CsUserData Error

The scenario is a migration from Lync 2010 to Lync 2013 in a new Active Directory forest and want to migrate users buddy lists.

You run DBIMPEXP.EXE on the Lync 2010 environment to export the user data to XML.  On the 2013 system you convert the XML to Lync 2013 format then run Import-CsUserData.

Convert-CsUserData -inputfile C:temp2010UserData.xml -outputfile -targetversion Current

Import-CsUserData -PoolFqdn "fpool01.domain.local" -FileName ""


When running Import-CsUserData you get the error:

PS C:Usersusername> Import-CsUserData -PoolFqdn "fpool01.domain.local" -FileName ""
Import-CsUserData : '@' is an unexpected token. The expected token is ';'. Line 1364, position 39.
At line:1 char:1
+ Import-CsUserData -PoolFqdn "fpool01.domain.local" -FileName "C:temp2 ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (C:Usersuserna...mpExpImport.Zip:String) [Import-CsUserData], XmlException
+ FullyQualifiedErrorId : ExportFailure.IO,Microsoft.Rtc.Management.BlobStore.ImportOcsUserStoreDataCmdlet


If you look at line 1364 you will notice that the users SIP address has an “&” (amersand).  To fix I removed the users entry from the XML (All lines from <app:DocItem Name= to line </app:DocItem>) and zipped the files again.  The import then ran successfully.

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.