When publishing a SPD workflow which contains more than 6 Approval process steps, it gives the following error :
How ever if you try 5-6 times, you might end up publishing it. But sometimes it won’t work.
Even though Microsoft had mentioned that their 'February 2011 CU for the SharePoint 2010 Product Family' would fix most of the errors, this was not included among them.
But there’s a work around to fix the above issue.
Open the ‘web.config’ which associate with the site collection that you are publishing the workflow. (E.g: ‘C:\inetpub\wwwroot\wss\VirtualDirectories\<Port>’)
Find the following entry :
<httpRuntime maxRequestLength="51200" />
And change it to :
<httpRuntime maxRequestLength="51200" executionTimeout="300" />
Save the ‘web.config’ file and restart the web site from IIS.
Now you can publish the workflow without any issue.
Thanks so much! this worked like a charm :) much appreciated!
ReplyDeleteThanks. It helped...
ReplyDeleteHi Manjuke,
ReplyDeleteI tried this. It didn't work for me. Any other solution please?
Hi Naush,
ReplyDeleteHow many apporval processes do you have in your workflow ?
Hi Manjuke,
ReplyDeleteI have 7 approval process. Till 5 levels, it was working fine. I tried to use the 'start custom task process' action instead of 'start approval process' action. But the result is same. I get the same error. please advise.
Thanks,
Naush
Hi Naush,
ReplyDeletePlease try to increase the "UserDefinedWorkflowMaximumComplexity" setting using your power shell as mentioned in this link
http://social.technet.microsoft.com/Forums/en-US/sharepoint2010customization/thread/c4513200-5ada-4228-9d32-8978c6583117
Please let me know of the outcome.
Thanks so much! this worked like a charm :) really appreciated!
ReplyDeleteI have same issue with moss 2007!! please help me out!!
ReplyDeletePlease check on this link:
Deletehttp://social.technet.microsoft.com/Forums/en-US/sharepoint2010customization/thread/c4513200-5ada-4228-9d32-8978c6583117
Thanks. It helped...
ReplyDeletethanks a lot
ReplyDeleteWOW .. this sucks ... I have been using SPD for a while and I have not seen this issue in SharePoint 2010 during my time ... I'm in a unique situation where I'm forced to use SharePoint 2010 in Office 365 (SharePoint Online) ... this fix sounds logical but as you know we don't have access to WebConfig ... is there an alternative workaround for Office 365 SharePoint 2013 Online if you get this SharePoint 2010 Workflow Error? Thanks much.
ReplyDeleteUnfortunately no. I haven't found an alternate method to overcome this problem. Better to try in Microsoft forums. If you can provide me your email address, I can forward it to some friends who are experts in this area.
DeleteGreat that works like a charm ... Thank you so much!!!
ReplyDeleteGrateful to check out your website, I seem to be ahead to more excellent sites and I wish that you wrote more informative post for us. Well done work.
ReplyDelete