none
SharePoint 2013 Designer Workflow : Gets Cancelled with Unauthorised error. After executing the Custom Activity RRS feed

  • Question

  • Hi All,

    I am facing a weird error with the designer workflow.

    I have a coded custom activity in my Designer workflow. After that step gets executed the workflow terminates with Unauthorised error .

    Sometimes i get the below errors :

    1)

    Retrying last request. Next attempt scheduled in less than one minute. Details of last request: HTTP Unauthorized to http://sharepointsite/_vti_bin/client.svc/sp.utilities.utility.ResolvePrincipalInCurrentcontext(input=@ParamUser,scopes='15',sources='15',inputIsEmailOnly='false',addToUserInfoList='False')?%40ParamUser='i%3A0%23.w%7Cfitsvcs%5C' Correlation Id: bab5b978-89f2-a5b1-bde7-87053763c7d8 Instance Id: fc66e52a-1bf5-453b-86bc-2106823a7871  Retry now  

    2)

    Retrying last request. Next attempt scheduled in less than one minute. Details of last request: HTTP Unauthorized to http://sharepointsite/_vti_bin/client.svc/web/lists/getbyid(guid'1791256a-fb36-463f-a0ac-dd946b47a285')/Items(110)?%24select=ID%2Cdatetest Correlation Id: bab5b978-89f2-a5b1-884d-50a5c617a1ce Instance Id: c7c88a79-ae54-45e1-b0c6-c97b421a0779

    I searched for possible solutions and came across three resolutions (a) User profile synchronization service should be started (b) Feature “Workflows can use app permissions” should be activated and, (c) Set workflow as trusted in site settings -> site app permissions.

    However, none of these worked for me. Looking forward for your response.

    When i check the logs in i find that : 

    Execute method of job definition Microsoft.Office.Server.UserProfiles.UserProfileImportJob (ID c91470f7-f26d-4f99-9f35-69822ff25c33) threw an exception. More information is included below.  There was no endpoint listening at http://servername:5725/ResourceManagementService/MEX that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.

    Exception occurred while creating an SPIdentityContext from SPUserToken '7f683dde0000000034000000efeeebea010000000c00000000000000dfdedbda0100000000000000010100000000000000000000'. System.NotSupportedException: Not supported in Windows authentication mode.   

     at Microsoft.SharePoint.IdentityModel.SPIdentityContext.Create(SPUserToken token, Boolean isShareByLinkGuestUser) StackTrace

    Thanks in Advance ,

    Pallavi

    Sunday, February 26, 2017 7:49 AM

All replies