Configurng SP to use Okta as the auth prov. Installed the People Picker but it wasn't clean so we removed it. Now getting a sys excptn of: Error installing the Okta Claims Provider feature. Exception: Objects cannot be used once they have been del. Ideas? Skip to main content
https://support.okta.com/help/answers?id=906f0000000xzd6iao&refurl=http%3a%2f%2fsupport.okta.com%2fhelp%2fanswers
How satisfied are you with the Okta Help Center?
Thank you for your feedback!
How satisfied are you with the Okta Help Center?
1
2
3
4
5
Very Dissatisfied
Very satisfied
Enter content less than 200 characters.
Ask Search:
Angela CragheadAngela Craghead 

Configurng SP to use Okta as the auth prov. Installed the People Picker but it wasn't clean so we removed it. Now getting a sys excptn of: Error installing the Okta Claims Provider feature. Exception: Objects cannot be used once they have been del. Ideas?

Arturo HinojosaArturo Hinojosa (Okta, Inc.)
Hi Angela,

This has been observed to happen when the people picker DiagnosticProvider is not cleanly removed. There is a work around:

Error: Unable to redeploy PeoplePicker solution because getting the following SharePoint error:  System.Exception: Error installing the Okta Claims Provider feature. Exception: Objects cannot be used once they have been deleted.   

Solution: This is caused by the People Picker Diagnostic service not being properly removed during the uninstall process. This can happen if the Okta claims provider is not disabled during an uninstall of the PeoplePicker solution. Execute the following PowerShell commands to manually remove the Diagnostic service:

[System.Reflection.Assembly]::LoadWithPartialName("Microsoft.Sharepoint.Administration")
$farm = [Microsoft.Sharepoint.Administration.SPFarm]::Local
$svc = $farm.Services | Where-Object {$_.TypeName -eq 'OktaClaimsProvider.OktaClaimsDiagnosticService'}
$svc.Delete()

That should clean everything up, and allow you to re-install the people picker.

If you have more questions on our product join our "Ask me Anything" session on 10/15 at 10 AM PT. I will be hosting an open Q&A on Okta Mobility Management, Adaptive MFA, and other topics. You can learn more here: bit.ly/1joCz1Q
Angela CragheadAngela Craghead
Thank you Arturo! We will give this a try.