You are currently offline, waiting for your internet to reconnect

"There is a duplicate key sequence" error in Lync or Skype for Business after you run the New-CSHostingProvider PowerShell cmdlet

PROBLEM
Consider the following scenario: 
  • You're setting up a Skype for Business Online (formerly Lync Online) hybrid environment in Skype for Business Server 2015, Microsoft Lync Server 2013, or Microsoft Lync Server 2010.
  • You run the following Lync Server or Skype for Business Server PowerShell cmdlet:
    New-CSHostingProvider -Identity LyncOnline -ProxyFqdn "sipfed.online.lync.com" -Enabled $true -EnabledSharedAddressSpace $true -HostsOCSUsers $true -VerificationLevel UseSourceVerification -IsLocal $false -AutodiscoverUrl https://webdir.online.lync.com/Autodiscover/AutodiscoverService.svc/root
In this scenario, you receive the following error message:  
There is a duplicate key sequence "LYNCONLINE" for the 'urn:schema:Microsoft.Rtc.Management.Settings.Edge.2008:ProviderName' key or unique identity constraint.
SOLUTION
To resolve this issue, remove the existing LyncOnline provider, and then run the original cmdlet again.  Run both Get-CSHostingProvider and Get-CSPublicProvider cmdlets to see all existing providers and determine whether any providers have the same name as the name that you’re trying to create. (For example, determine whether any providers have the name "LyncOnline.")

If the existing LyncOnline connector is a hosting provider, use the following command to remove it:
Remove-CSHostingProvider –Identity LyncOnline
If the conflicting provider is a public provider, use the following command to remove it:
Remove-CSPublicProvider –Identity LyncOnline
MORE INFORMATION
This issue occurs because there is a public provider that has the duplicate name "LyncOnline configured in the topology. This can be verified by viewing the following settings in the Lync control panel:
  • In Lync 2010, click External User Access, and then click Provider.
  • In Lync 2013, click Federation and External Access, and then click SIP Federated Providers.

Still need help? Go to the Office 365 Community website.
Properties

Article ID: 3108403 - Last Review: 11/11/2015 19:15:00 - Revision: 2.0

Skype for Business Online, Skype for Business Server 2015, Microsoft Lync Server 2013, Microsoft Lync Server 2010 Enterprise Edition, Microsoft Lync Server 2010 Standard Edition

  • o365e o365p o365a o365m o365022013 hybrid o365 KB3108403
Feedback
>