Move-CsLegacyUser : ConstraintViolationNoLeadingOrTrai lingWhitespace

I am trying to move users from OCS 2007 R2 to LYNC2010 pool and successfully moved few users from selected OUs, however got the below error while moving the remaining users.

Move-CsLegacyUser : ConstraintViolationNoLeadingOrTrailingWhitespace
At line:1 char:146
+ (Get-CsUser -OU "OU=USA,OU=Users,DC=contoso,DC=com" -OnOfficeCommunicationServer) | Move-CsLegacyUser <<<<  -Target "lync.contoso.com" -Confirm:$false
    + CategoryInfo          : NotSpecified: (:) [Move-CsLegacyUser], DataValidationException
    + FullyQualifiedErrorId : Microsoft.Rtc.Management.ADConnect.DataValidationException,Microsoft.Rtc.Management.AD.Cmdlets.MoveOcsLegacyUserCmdlet

I could not find any solution or workaround for this error.

Any help to resolve this issue is much appreciated.

Thanks in advance for you

April 2nd, 2014 12:03am

It seem that you have some accounts have whitespaces in CN.

The error should list the corrupted account, find these accounts and try to move them with force parameter separately.

Free Windows Admin Tool Kit Click here and download it now
April 3rd, 2014 2:45am

Take a look at the naming conventions

for the accounts that are having problems look for spaces

looks like the accounts are not being converted because of spaces or errant characters give me an example of one that fails
April 5th, 2014 5:50pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics