Solved

Sharepoint 2010 Workflow Error In Sharepoint 2013 : Errors were found when compiling the workflow. The workflow files were saved but cannot be run. Unexpected error on server associating the workflow

Posted on 2015-01-25
4
4,391 Views
Last Modified: 2015-02-01
I am publishing SharePoint 2010 workflow within SharePoint 2013 environment (On premise). Everything worked find until yesterday but now when I publish any workflows using SharePoint 2010 it throws following error:

"Errors were found when compiling the workflow. The workflow files were saved but cannot be run"

When I click on Advanced it shows following error:

"Unexpected error on server associating the workflow"

I have been investigating this error since yesterday without any luck. I have tried the following links but no luck:

http://techvier.blogspot.com/2013/11/spd-2013-error-workflow.html

http://geekswithblogs.net/ferdous/archive/2013/01/29/resolving-sharepoint-workflow-publish-error.aspx

http://support2.microsoft.com/kb/2557533/en-us

Not sure on this one. Any idea why this could be happening
0
Comment
Question by:Snehal Rana
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 29

Assisted Solution

by:QPR
QPR earned 500 total points
ID: 40571831
0
 
LVL 1

Accepted Solution

by:
Snehal Rana earned 0 total points
ID: 40573034
QPR: Yes, I tried these steps along the side with bunch of other steps. Not sure what resolved this issue for me but I was able to publish the workflow on the Server. I think following steps might have contributed in resolving this:
1.Increasing the UserDefinedWorkflowMaximumComplexity to 30000  setting using PowerShell script
2.IISRESET
3.Adding <httpRuntime maxRequestLength="51200" execution Timeout="3600" /> in web.config. Yes, that is "3600" unlike "300" suggested. Please note that there are multiple lines in web.config with <httpRuntime maxRequestLength="51200">. I made this change only in the very first one.
4.IISRESET
5.Removed everything from C:\Users\<userName>\AppData\Local\Microsoft\WebsiteCache from my laptop
6. Removed everything from C:\Users\USER\AppData\Roaming\Microsoft\SharePoint Designer\ProxyAssemblyCache\ from my laptop
6.Removed everything from C:\Users\<userName>\AppData\Roaming\Microsoft\Web Server Extensions\Cache from my laptop
7.IISRESET
8.Restart SharePoint 2013 Designer

All the SharePoint 2010 workflows are not getting published and they are working correctly as needed. Though, it is still unknown that why I could not publish the workflow using my own user account from my laptop which is Windows 7 professional machine.

Maybe someday I might be able to find the cause but for now above mentioned steps did the trick for me.
0
 
LVL 1

Author Comment

by:Snehal Rana
ID: 40573270
The resolution to this issue included multiple solutions. As per my note above. Please mark this question as resolved and close this
0
 
LVL 1

Author Closing Comment

by:Snehal Rana
ID: 40582248
The solution suggested by QPR was one of the step that helped resolve this issue.
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For SharePoint sites, particularly public-facing ones, there are times when adding JavaScript, Meta Tags, CSS Styles or other content to the page <head> section is more practical than modifying master pages.  For instance, you could add the jQuery l…
When using a search centre, I'm going to show you how to configure Sharepoint's search to only return results from the current site collection. Very useful when using Office 365 with multiple site collections.

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question