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,115 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

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

The Scenario: Let’s say you have a quote worksheet in Excel that you use to work up sales figures and such for your clients. You utilize SharePoint to manage and keep track of these documents. You would like values from your worksheet to populate Sh…
The vision: A MegaMenu for a SharePoint portal home page The mission: Make it easy to maintain. Allow rich content and sub headers as well as standard links. Factor in frequent changes without involving developers or a lengthy Dev/Test/Prod rel…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

820 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