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
3,576 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
  • 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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Note:  There are two main ways to deploy InfoPath forms:  Server-side and directly through the SharePoint site.  Deploying a server-side InfoPath form means the form is approved by the Administrator, thus allowing greater functionality in the form. …
I recently came across an issue with a MOSS 2007 deployment where access into some sub-sites were denied, even for the MOSS farm administrators. A bit of background to the setup of this MOSS farm; this was a three server setup, consisting of a fr…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

743 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now