Showing posts with label Workflow. Show all posts
Showing posts with label Workflow. Show all posts

Monday, May 5, 2014

SharePoint 2013 Workflow gets Suspended

I was stuck with the error of Workflow gets suspended automatically.
Only Users with Full Control Permissions could make workflow start with no problems, but any user else face this problem.

RequestorId: eda26c74-95ef-2733-0000-000000000000. 
Details: An unhandled exception occurred during the execution of the workflow instance. 
Exception details: System.ApplicationException: HTTP 401 {"Transfer-Encoding":["chunked"],"X-SharePointHealthScore":["0"],"SPClientServiceRequestDuration":["200"],"SPRequestGuid":["eda26c74-95ef-2733-9cb7-5327536614d3"],"request-id":["eda26c74-95ef-2733-9cb7-5327536614d3"],"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, 05 May 2014 07:55:44 GMT"]} at Microsoft.Activities.Hosting.Runtime.Subroutine.SubroutineChild.Execute(CodeActivityContext context) at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager) at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)

I made sure the User Profile Service is Configured and I did the full synchronization, and the user has a profile.

Finally nailed it by following steps:
1- Make sure the Workflow History List has the same permissions as your list, or grant a unique permission ,Contribute, for the users who will use the workflow.

2- Make sure the Workflow Tasks List has the same permissions as your list, or grant a unique permission ,Contribute, for the users who will use the workflow.

3- Check your workflow through SharePoint Designer and check permissions granted in any related list in the workflow ( That Solved my Problem, As I had another list which I get data from it and by mistake permissions there changed ) 


Usefull Links For Same Issue:


Monday, March 31, 2014

Emails from "workflow@noreply" - SharePoint 2013

It was a bug in the SharePoint 2013 that workflows send emails from Workflow@noreply ... and this was actually fixed in the SharePoint 2013 March PU, the engine now will send as the outbound email address configured in the Central Administration.

Download SharePoint Updates from

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: