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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

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…
I thought I'd write this up for anyone who has a request to create an anonymous whistle-blower-type submission form created using SharePoint 2010 (this would probably work the same for 2013). It's not 100% fool-proof but it's as close as you can get…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.

867 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

24 Experts available now in Live!

Get 1:1 Help Now