AnsweredAssumed Answered

Nintex worflow fails at flexi task: Error in task. Attempted to perform an unauthorized operation

Question asked by jyothi.sharma on Nov 9, 2016

I built an approval workflow using flexi tasks. The workflow has different approval gates and based on the outcome in previous gate it goes to next approval gate using state machine. The workflow was working fine during development, testing and had no issues and now all of a sudden, the workflow fails at flexi task and wont enter the task action. It throws and "Error in task. Attempted to perform an unauthorized operation."  and the workflow errors out.

 

The error is very inconsistent and fails at different level each time.

 

when asked I was provided the below log:

 

Nintex.Workflow.NWActionExecutionException: Error in task. ---> System.UnauthorizedAccessException: Attempted to perform an unauthorized operation.   
 at Microsoft.SharePoint.Utilities.SPUtility.HandleAccessDenied(Exception ex)   
 at Microsoft.SharePoint.Utilities.SPUtility.SearchPrincipals(SPWeb web, String input, Boolean includeUpnInOperations, SPPrincipalType scopes, SPPrincipalSource sources, SPUserCollection usersContainer, Int32 maxCount, Boolean& reachMaxCount)   
 at Microsoft.SharePoint.Administration.Claims.SPActiveDirectoryClaimProvider.ResolvePrincipalInfo(Uri context, SPPrincipalType principalType, Boolean inputIsEmailOnly, Boolean disableEmailResolve, Boolean resolveIncludesUpnProperty, String resolveInput, Boolean& resolved)   
 at Microsoft.SharePoint.Administration.Claims.SPActiveDirectoryClaimProvider.FillResolve(Uri context, String[] entityTypes, Boolean inputIsEmailOnly, String resolveInput, List`1 resolved)   
 at Microsoft.SharePoint.Administration.Claims.SPActiveDirectoryClaimProvider.FillResolve(Uri context, String[] entityTypes, String resolveInput, List`1 resolved)   
 at Microsoft.SharePoint.Administration.Claims.SPClaimProvider.Resolve(Uri context, String[] entityTypes, String resolveInput)   
 at Microsoft.SharePoint.Administration.Claims.SPClaimProviderOperations.Resolve(Uri context, SPClaimProviderOperationOptions mode, String[] providerNames, String[] entityTypes, String resolveInput)   
 at Microsoft.SharePoint.Utilities.SPUtility.ResolvePrincipalClaims(SPWeb web, SPWebApplication webApplication, Nullable`1 urlZone, String input, SPPrincipalType scopes, SPPrincipalSource sources, SPPrincipalInfo user, Boolean inputIsEmailOnly)   
 at Microsoft.SharePoint.Utilities.SPUtility.ResolvePrincipalInternal(SPWeb web, SPWebApplication webApp, Nullable`1 urlZone, String input, SPPrincipalType scopes, SPPrincipalSource sources, SPUserCollection usersContainer, Boolean inputIsEmailOnly, Boolean alwaysAddWindowsResolver)   
 at Microsoft.SharePoint.Utilities.SPUtility.ResolvePrincipal(SPWeb web, String input, SPPrincipalType scopes, SPPrincipalSource sources, SPUserCollection usersContainer, Boolean inputIsEmailOnly)   
 at Nintex.Workflow.HumanApproval.UserInfo.WhatTypeOfPrincipalAmI(String resolvedInput, SPWeb web, SPPrincipalInfo& details)   
 at nBQ=.hBY=.ohY=(ApproverConfig[] oxY=, List`1 pBY=, Boolean pRY=, WorkflowContext phY=, NWWorkflowContext pxY=)   
 at Nintex.Workflow.Activities.MultiOutcomeInternal.codeActivity1_ExecuteCode(Object sender, EventArgs e)   
 at System.Workflow.ComponentModel.Activity.RaiseEvent(DependencyProperty dependencyEvent, Object sender, EventArgs e)   
 at System.Workflow.Activities.CodeActivity.Execute(ActivityExecutionContext executionContext)   
 at System.Workflow.ComponentModel.ActivityExecutor`1.Execute(T activity, ActivityExecutionContext executionContext)   
 at System.Workflow.ComponentModel.ActivityExecutorOperation.Run(IWorkflowCoreRuntime workflowCoreRuntime)   
 at System.Workflow.Runtime.Scheduler.Run()     -
 -- End of inner exception stack trace --- (Build:3160)

 

Workflow won't enter the flexi task aciton

All users have a minimum of contribute permission and I also checked the permissions for workflow task list and history list. I am unable to find the cause for this error.

Outcomes