serge's profileSerge Luca (Sharepoint M...PhotosBlogLists Tools Help

Blog


    August 20

    Step by Step Tutorial.Creating workflows with Windows Sharepoint Services and MOSS 2007(Part 17/20). Solving the infamous “Failed On Start (Retrying)”

     

     

    image

     

     

    Spending a lot a time (anwering) in the Sharepoint newsgroups, I've noticed the "Failed On Start" error is an extremely frequent question.This post will probably help many people.

    When we start a (Custom) Sharepoint Workflow (but even sometimes Out of the Box workflows) the infamous Failed on start (retrying) error may hit you.The most common reasons of this error are:

    1. in most cases the main reason is that the CodeBesideclass and the CodeBeside assembly in workflow.xml don't match the workflow class name & assembly strong name  of the dll registered in the GAC  ("Unexpected Load Workflow Assembly: System.IO.FileNotFoundException: Could not load file or assembly xxxx") is what you will find in the Sharepoint log.

    User Reflector the compare your assemblies strong name/class name & don't forget the namespace!


    2.the workflow-eventdelivery-throttle parameter is to low

    To prevent web front ends (w3wp) from getting overrun by running too many workflows instances, there is a throttle limit. If more events than the throttle are already being processed, the newer events are enqueued as work items – they will be picked up by OWSTimer.

    If your workflows don’t start immediately as expected you probably have to increase this throttle limit

    stsadm -o setproperty -pn workflow-eventdelivery-throttle -pv "20"  (the default value is 15).

    By Code :

    SPWebApplication myWebApps = SPWebApplication.Lookup(new Uri(websiteUrl));
                myWebApps.WebService.WorkflowEventDeliveryThrottle = 20;
                myWebApps.WebService.Update();

    It looks like in some situations” a Failed On Start” may be triggered and can be solved by increasing this value.

    In some cases, I’ve noticed that increasing this value may solve a “Failed On Start” which indeed is very strange : when the W3P.exe is overrun, all actions (including event deliveries) are supposed the be enqueued (and thus executed later) but the OWSTIME.exe service.
    The error message in the Sharepoint log looks like this:

    Windows SharePoint Services     Workflow Infrastructure         936r    Verbose        RunWorkflow: No pending events - possibly targeted for async delivery

     

    3.the transaction timeout value is too low can also generate a Failed on Start, specially when a lot of task (several hundreds) are created by the workflow which try to store the in a SQL Server transaction. the information you will find in the Sharepoint log file is soething like this

    Workflow Infrastructure             72fg     High    Error in persisting workflow: System.Transactions.TransactionAbortedException: The transaction has aborted. ---> System.TimeoutException: Transaction Timeout     --- End of inner exception stack trace ---     at System.Transactions.TransactionStateAborted.CreateAbortingClone(InternalTransaction tx).

    One possible workaround is to increase the timeout value in the web.config file.  By default the value is set to 1 minute.  You can increase the value to 5 minutes for instance :

     

    <configuration>

      <system.transactions>

        <defaultSettings timeout="00:05:00"/>

      </system.transactions>

    </configuration>

     

    4.repair of the .NET 3.0/.Net 3.5 Framework may be necessary. If you have SP1 for the .NET Framework installed, just go into the Control Panel/Add Remove Programs and click the Change button on Microsoft .NET Framework 3.0 SP1. If you don't have the Service Pack you can install it. The Change process takes about 2 minutes.

    5.A more exotic one : Workflow Foundation performance counters not loaded

    Reload them again:  Lodctr "c:\Windows\Microsoft.Net\Framework\v3.0\Windows Workflow Foundation\perfcounters.ini"



    Comments (6)

    Please wait...
    Sorry, the comment you entered is too long. Please shorten it.
    You didn't enter anything. Please try again.
    Sorry, we can't add your comment right now. Please try again later.
    To add a comment, you need permission from your parent. Ask for permission
    Your parent has turned off comments.
    Sorry, we can't delete your comment right now. Please try again later.
    You've exceeded the maximum number of comments that can be left in one day. Please try again in 24 hours.
    Your account has had the ability to leave comments disabled because our systems indicate that you may be spamming other users. If you believe that your account has been disabled in error please contact Windows Live support.
    Complete the security check below to finish leaving your comment.
    The characters you type in the security check must match the characters in the picture or audio.

    To add a comment, sign in with your Windows Live ID (if you use Hotmail, Messenger, or Xbox LIVE, you have a Windows Live ID). Sign in


    Don't have a Windows Live ID? Sign up

    儿 雨wrote:

    http://www.akkuliste.com/laptop-ac-adapter/samsung/samsung-19V-3.16A-60w-5.5mm-3.4mm-pin-inside.php
    http://www.akkuliste.com/laptop-ac-adapter/liteon/liteon-19V-3.95A-75w-5.5mm-2.5mm.php
    http://www.akkuliste.com/laptop-ac-adapter/liteon/liteon-19V-4.74A-90w-5.5mm-2.5mm.php
    http://www.akkuliste.com/laptop-ac-adapter/liteon/liteon-19V-6.3A-120w-5.5mm-2.5mm.php
    http://www.akkuliste.com/laptop-ac-adapter/liteon/liteon-19V-6.3A-120w-4pin-round.php
    http://www.akkuliste.com/laptop-ac-adapter/liteon/liteon-19V-3.42A-65w-5.5mm-2.5mm-white.php
    http://www.akkuliste.com/laptop-ac-adapter/toshiba/toshiba-15V-8A-120w-special-4-hole.php
    http://www.akkuliste.com/laptop-ac-adapter/liteon/liteon-19V-4.74A-90w-5.5mm-1.7mm.php
    http://www.akkuliste.com/laptop-ac-adapter/hp/hp-19V-4.74A-90w-5.5mm-2.5mm.php
    http://www.akkuliste.com/laptop-ac-adapter/hp/hp-18.5V-3.5A-65w-4.8mm-1.7mm.php
    http://www.akkuliste.com/laptop-ac-adapter/hp/hp-19V-4.74A-90w-4.8mm-1.7mm.php
    http://www.akkuliste.com/laptop-ac-adapter/acer/acer-19V-3.42A-65w-5.5mm-2.5mm-big-head.php
    http://www.akkuliste.com/laptop-ac-adapter/acer/acer-19V-3.42A-65w-5.5mm-1.5mm-small-head.php
    http://www.akkuliste.com/laptop-ac-adapter/fujitsu/fujitsu-19V-4.74A-90w-5.5mm-2.5mm.php
    http://www.akkuliste.com/laptop-ac-adapter/dell/dell-19V-3.16A-60w-5.5mm-2.5mm.php
    http://www.akkuliste.com/laptop-ac-adapter/dell/dell-20V-3.5A-70w-horseshoe-style-special-for-dell-pa-6.php
    http://www.akkuliste.com/laptop-ac-adapter/compaq/compaq-19V-4.74A-90w-5.5mm-2.5mm.php
    http://www.akkuliste.com/laptop-ac-adapter/dell/dell-19.5V-3.34A-65w-7.4mm-5.0mm-with-pin-pa-12.php
    http://www.akkuliste.com/laptop-ac-adapter/asus/asus-19v-3.42A-65w-5.5mm-2.5mm.php
    http://www.akkuliste.com/dell/latitude-d620.htm dell latitude d620 akku
    http://www.akkuliste.com/acer/as07b41.htm acer as07b41 akku
    http://www.akkuliste.com/dell/xps-1330.htm dell xps 1330 akku
    http://www.akkuliste.com/dell/xps-m1330.htm dell xps m1330 akku
    http://www.akkuliste.com/acer/as07b42.htm acer as07b42 akku
    http://www.akkuliste.com/acer/as07b72.htm acer as07b72 akku
    http://www.akkuliste.com/acer/as07b52.htm acer as07b52 akku
    http://www.akkuliste.com/acer/travelmate-4200.htm acer travelmate 4200 akku
    http://www.akkuliste.com/acer/aspire-5100.htm acer aspire 5100 akku
    http://www.akkuliste.com/dell/inspiron-6000.htm dell inspiron 6000 akku
    http://www.akkuliste.com/dell/inspiron-9300.htm dell inspiron 9300 akku
    http://www.akkuliste.com/toshiba/satellite-a100.htm toshiba satellite a100 akku
    http://www.akkuliste.com/toshiba/satellite-m100.htm toshiba satellite m100 akku
    http://www.akkuliste.com/toshiba/pa3534u-1bas.htm toshiba pa3534u-1bas akku
    http://www.akkuliste.com/toshiba/PA3533U-1BAS.htm toshiba PA3533U-1BAS akku
    http://www.akkuliste.com/acer/as07b32.htm acer as07b32 akku
    http://www.akkuliste.com/acer/aspire-5500.htm acer aspire 5500 akku
    Nov. 9
    风 林wrote:
    I think I will try to recommend this post to my friends and family, cuz it’s really helpful.[url="http://www.topugg.com/">Ugg Boots[/url] I think I will try to recommend this post to my friends and family, cuz it’s really helpful.<br />[url=http://www.topugg.com]UGG Boots[/url]
    Just wanted to say great job with the blog, today is my first visit here and I’ve enjoyed reading your posts so far[url="http://www.topugg.com">UGG boots uk[/url] Just wanted to say great job with the blog, today is my first visit here and I’ve enjoyed reading your posts so far<br />[url=http://www.topugg.com]UGG boots uk[/url]
    Thanks for article. Everytime like to read you.<br /><p><a href="http://www.topugg.com">cheap ugg boots</a></p> Thanks for article. Everytime like to read you.<br />[url=http://www.topugg.com]cheap ugg boots[/url]
    Only One word to characterize such a great post “WOW” that was a very interesting read<br /><p><a href="http://www.topugg.com">ugg boots sale</a></p> Only One word to characterize such a great post “WOW” that was a very interesting read<br />[url=http://www.topugg.com]ugg boots sale[/url]
    Everything dynamic and very positively!<br /><p><a href="http://www.topugg.com">ugg boot</a></p> Everything dynamic and very positively!<br />[url=http://www.topugg.com]ugg boot[/url]
    Nice post!Hey,have you heard about [url=http://www.bootsmall.co.uk] timberland boots[/url]
    I like it very much,such as [url=http://www.bootsmall.co.uk/classic-timberland-c-48.html] timberland work boots,it's cool and [url=http://www.bootsmall.co.uk/mens-rolltop-boots-c-41.html] roll top boots[/url] also very good. [url=http://www.bootsmall.co.uk/classic-timberland-c-48.html] Classic Timberland[/url]]
    [url=http://www.bootsmall.co.uk/kids-timberland-boots-c-43.html] Kids Timberland Boots[/url]]
    [url=http://www.bootsmall.co.uk/mens-6-inch-boots-c-40.html] Men's 6 Inch Boots[/url]]
    [url=http://www.bootsmall.co.uk/mens-chukka-boots-c-44.html] Men's Chukka Boots[/url]]
    [url=http://www.bootsmall.co.uk/mens-custom-boots-c-45.html] Men's Custom Boots[/url]]
    [url=http://www.bootsmall.co.uk/mens-rolltop-boots-c-41.html] Men's Roll-Top Boots[/url]]
    [url=http://www.bootsmall.co.uk/womens-6-inch-boots-c-42.html] Women's 6 Inch Boots[/url]]
    [url=http://www.bootsmall.co.uk/womens-high-top-boots-c-46.html] Women's High Top Boots[/url]]
    [url=http://www.bootsmall.co.uk/womens-rolltop-boots-c-47.html] Women's Roll-Top Boots[/url]
    Oct. 13
    No namewrote:
    Hey congrats on the new posting come out
    btw i love your blog although i have just stumbled upon it =)
    Hey congrats on the new posting come out
    btw i love your blog although i have just stumbled upon it =)
    Love the new pictures you got there! Please come visit my site <a href="http://www.washingtondccitypage.com">Washington Business Directory</a> when you got time.

    Sept. 3
    No namewrote:
    i love the style, i have several similar one, i usually wear them to work or shopping. Please come visit my site <a href="http://www.seattlebusinesslisting.com">Seattle Yellow Page Business Directory</a> when you got time.
    Sept. 3
    serge Lucawrote:
    hi osama,

    this is a standard ascx control provided with Sharepoint and can be found in C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\CONTROLTEMPLATES\
    Aug. 21
    osama shahwrote:
    Hello Sir,

    I have a question not relevant to this post but I didn't find any place to ask. Do you mind if I send question to your inbox?
    Ok the question is about the workflow you uploaded on codeplex "CollectFeedbackWorkflow" I just want to know about the form, more specifically I got almost everything but where these controls exist?
    "<%@ Register TagPrefix="wssuc" TagName="InputFormSection" src="/_controltemplates/InputFormSection.ascx" %>"
    If you prefer not to reply here you can mail me on osamashah@msn.com

    Thank you so much for the help
    Aug. 21

    Trackbacks

    The trackback URL for this entry is:
    http://sergeluca.spaces.live.com/blog/cns!E8A06D5F2F585013!6106.trak
    Weblogs that reference this entry
    • None