N/APosted on - 09/13/2013
I have been trying to create a list Workflow on SharePoint Designer 2013 but when I try saving at the end of my creation, I get a Workflow error as shown below. What are your ideas on solving this error? Waiting for your suggestions experts.
Error – Errors were found when compiling the workflow. The workflow files were saved but cannot be run.
Microsoft.Workflow.Client.WorkflowCommunicationException: The request was aborted: The request was canceled. Client ActivityId: 7a290e9c-0917-7088-afc4-e65fd25c5c0b. —> System.Net.WebException: The request was aborted: The request was canceled. —> System.ServiceModel.ServiceActivationException: The requested service, 'net.pipe://localhost/SecurityTokenServiceApplication/appsts.svc' could not be activated. See the server's diagnostic trace logs for more information.
Server stack trace:
Error occurred while publishing workflow
What a mass! Workflow could be saved but couldn’t be run!
But nothing to worry. Though the problem seems very annoying and also frustrating, it has got solution.
When large numbers of types are created during workflow compilation, this problem might occur. Also, this might occur when workflows come with multiple approval process actions as each pre-configured Approval Process Action comes with a large set of local variables.
The solution is a little bit hard but working. You have to first make sure that SharePoint Farm is at February CU or later build so that “UserDefinedWorkflowMaximumComplexity” utility will be available. Now, you are able to prevent compilers to compile workflows whose compilation will affect the farm’s performance.
For more information, you are recommended to visit this page: