Go Premium for a chance to win a PS4. Enter to Win

x
?
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
Medium Priority
?
5,255 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 2000 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

If you create your solutions on SharePoint sooner or later you will come upon a request to set  permissions of the item depending on some of the item's meta-data - the author, people assigned as approvers, divisions, categories etc. The most natu…
There is one common problem that all we SharePoint developers share: custom solution deployment. This topic can't be covered fully in this short article, so all I want to do in this one is to review it from a development-to-operations perspectiv…
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Suggested Courses
Course of the Month12 days, 14 hours left to enroll

972 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