Powershell error - The registration of the custom connector for protocol is corrupted. Cannot be removed

Recently came across this error when trying to remove a deployed custom SharePoint 2010 search connector in PowerShell:
Remove-SPEnterpriseSearchCrawlCustomConnector -Identity Inmagic -SearchApplication $searchapp

Remove-SPEnterpriseSearchCrawlCustomConnector : The registration of the custom connector for protocol 'Inmagic' is corrupted. Cannot be removed.
At line:1 char:46
+ Remove-SPEnterpriseSearchCrawlCustomConnector <<<<  -Identity Inmagic -SearchApplication $searchapp
    + CategoryInfo          : InvalidArgument: (Inmagic:String) [Remove-SPEnterp...CustomConnector], ArgumentException
    + FullyQualifiedErrorId : Microsoft.Office.Server.Search.Cmdlet.RemoveCustomConnector
It turned out that the message was wrong and protocol name was case-sensitive.  Just sharing as it took a while for me to figure out.

1 comments:

Paul J. Galvin said...

I keep getting it by case sensitivity issues with powershell myself :)