Monday, March 17, 2014

Problem while starting a workflow in SharePoint 2013

Sometimes you found that the workflow is not starting, and when you check its status you find "Internal Status: Canceled"


Workflow Canceled










And when you click the blue mark, you will find:

 "System.ApplicationException: HTTP 401 {"Transfer-Encoding":["chunked"],"X-SharePointHealthScore":["0"],"SPClientServiceRequestDuration":["157"],"SPRequestGuid":["eda26c74-95ef-2733-fd4e-518b036ac92b"],"request-id":["eda26c74-95ef-2733-fd4e-518b036ac92b"],"X-FRAME-OPTIONS":["SAMEORIGIN"],"Cache-Control":["max-age=0, private"],"Server":["Microsoft-IIS\/8.0"],"WWW-Authenticate":["NTLM","Basic realm=\"Sharepoint.contoso.com\""],"X-AspNet-Version":["4.0.30319"],"X-Powered-By":["ASP.NET"],"MicrosoftSharePointTeamServices":["15.0.0.4420"],"X-Content-Type-Options":["nosniff"],"X-MS-InvokeApp":["1; RequireReadOnly"],"Date":["Mon, 17 Mar 2014 05:49:27 GMT"]} {"error":{"code":"-2147024891, System.UnauthorizedAccessException","message":{"lang":"en-US","value":"Access denied. You do not have permission to perform this action or access this resource."}}} at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager) at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)



notice that line: "Access denied. You do not have permission to perform this action or access this resource."

--> Before proceeding with solving the problem, make sure that the user initiating the workflow can browse the MySite normally.

then You can try:

  • Site actions > Site Settings > Site features
  • Activate site feature "Workflows can use app permissions"
Or:
  • Make sure that the "User Profile Synchronization Service" is Running.
  • Run a full synchronization in the User Profile Service Application.
Or:
  • Maybe it is a Permissions issue, make sure that the user initiating the workflow has "Edit" or "Contribute" Permission level on the site or the list, and that permission is granted Directly not through an AD group.

References:

No comments:

Post a Comment