locked
SharePointDesigner - Error when publishing a workflow RRS feed

  • Question

  • Hi.

    When i´m publishing my workflow, sharepoint designer rises the following exception:

    "Error were found when compiling the workflow. The workflow files were saved but cannot be run." - "Unexpected error on server associating the workflow."

    The workflow is really simple; i used some custom activities (to read details from an attached excel document) and then i have to do many checks and about 12 approvals.

    I have recreated the workflow and it seems that adding the 7th approval creates this error; when publishing with 6 approvals everything is fine.

    My Question: What is the error, where can i find more information regarding this issue, maybe it´s a bug in designer? Are there any known workarounds that can help? I really need so many approvals :-)

    Is there a way to split the workflow in 2 or 3 parts, that can do the "job" of the big one?


    I´m using Sharepoint Server 2010 with the current SPD (-> Microsoft Information Worker VM).

    Thx for help

    Tuesday, March 27, 2012 10:47 AM

Answers

  • I finally found a solution how to solve this issue:

    In the web.config file of the current site collection (where i was publishing my workflow) i have appended a timeoutvalue for my requests:

    Old entry: <httpRuntime maxRequestLength="51200"/>

    New entry: <httpRuntime maxRequestLength="51200" executionTimeout="300" />

    This will give my workflow some more time to publish!

    Source: http://www.manjuke.com/2011/05/fixed-sharepoint-designer-error.html

    • Marked as answer by M.Ottmann Thursday, April 19, 2012 11:20 AM
    Thursday, April 19, 2012 11:20 AM
  • Hi,

    Too big workflow, there is a size limit for a workflow. If it is a bug or not, I don't know but I had this issue in several projects.

    The solution is to split your workflow in several small workflows.

    Regards,

    • Marked as answer by M.Ottmann Wednesday, March 28, 2012 7:38 AM
    Tuesday, March 27, 2012 7:32 PM

All replies

  • Hi,

    Too big workflow, there is a size limit for a workflow. If it is a bug or not, I don't know but I had this issue in several projects.

    The solution is to split your workflow in several small workflows.

    Regards,

    • Marked as answer by M.Ottmann Wednesday, March 28, 2012 7:38 AM
    Tuesday, March 27, 2012 7:32 PM
  • You might want to check the SharePoint logs in the 14-hive on the SharePoint Server, usually located at:

    C:\Program Files\Common files\Microsoft Shared\Web Server Extensions\14\LOGS


    Alain de Klerk
    Please click "Propose As Answer" if this post solves your problem or "Vote As Helpful" if this post has been useful to you.

    Tuesday, March 27, 2012 8:53 PM
  • I finally found a solution how to solve this issue:

    In the web.config file of the current site collection (where i was publishing my workflow) i have appended a timeoutvalue for my requests:

    Old entry: <httpRuntime maxRequestLength="51200"/>

    New entry: <httpRuntime maxRequestLength="51200" executionTimeout="300" />

    This will give my workflow some more time to publish!

    Source: http://www.manjuke.com/2011/05/fixed-sharepoint-designer-error.html

    • Marked as answer by M.Ottmann Thursday, April 19, 2012 11:20 AM
    Thursday, April 19, 2012 11:20 AM
  • This fixed my issue!  Thanks so much!
    Monday, February 23, 2015 5:20 PM