Partilhar via


workflow failed with Unauthorized error

 when workflow failed ro start with this error :

Retrying last request. Next attempt scheduled in less than one minute. Details
of last request: HTTP Unauthorized to
https://sitename/_vti_bin/client.svc/web/lists/getbyid(guid'guid') Correlation
Id: id Instance Id: id

 uls :

01/12/2015 19:21:04.06 w3wp.exe (NLAMSPSHWF001:0x2B80) 0x2778 SharePoint Foundation Claims Authentication ae0tc High The registered mappered failed to resolve to one identity claim. Exception: System.Runtime.InteropServices.COMException (0x800703FA): Retrieving the COM class factory for component with CLSID {BDEADF26-C265-11D0-BCED-00A0C90AB50F} failed due to the following error: 800703fa Illegal operation attempted on a registry key that has been marked for deletion. (Exception from HRESULT: 0x800703FA).     at Microsoft.SharePoint.Library.SPRequest..ctor()     at Microsoft.SharePoint.SPGlobal.CreateSPRequestAndSetIdentity(SPSite site, String name, Boolean bNotGlobalAdminCode, String strUrl, Boolean bNotAddToContext, Byte[] UserToken, SPAppPrincipalToken appPrincipalToken, String userName, Boolean bIgnoreTokenTimeout, Boolean bAsAnonymous)     at Microsoft.SharePoint.SPRequestManager.GetContextRequest(SPRequestAuthenticationMode authenticationMode)     at Microsoft.SharePoint.Administration.SPFarm.get_RequestAny()     at Microsoft.SharePoint.SPSecurity.GetCurrentUserTokenNoApplicationPrincipalDelegated(SPWebApplication webApp, Uri siteUrl)     at Microsoft.SharePoint.SPSecurity.GetCurrentUserToken()     at Microsoft.SharePoint.SPSecurity.EnsureOriginatingUserToken()     at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(WaitCallback secureCode, Object param)     at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(CodeToRunElevated secureCode)     at Microsoft.Office.Server.Security.UserProfileIdentityClaimMapper.GetMappedIdentityClaim(Uri context, IEnumerable`1 identityClaims)     at Microsoft.SharePoint.IdentityModel.SPIdentityClaimMapperOperations.GetClaimFromExternalMapper(Uri contextUri, List`1 claims) 324f82b4-5cee-fea5-86a9-368c6e129213

 solution:

 first make sure the STS ApplicationPool identity has full control on UPA.

  • In InetMgr, go to advanced settings for Security Token Service Application Pool
  • change "Load User Profile" to true.
  • Recycle application pool