locked
Microsoft CRM 2011 workflow hangs in waiting status RRS feed

  • Question

  • Hello, we are experiencing problems with workflow in CRM 2011. It stays in the waiting status and never continues, eventough the conditions are met.

     It is similar to this one: http://support.microsoft.com/kb/951919

    but this time it is for CRM 2011. Do you know about any fix?

    Monday, March 21, 2011 10:03 AM

Answers

All replies

  • In the async service trace log we have this message:

    >Crm Exception: Message: Expected non-empty Guid., ErrorCode: -2147220989, InnerException: System.ArgumentException: Expected non-empty Guid.
    Parameter name: id
    [2011-03-22 08:54:40.403] Process:CrmAsyncService |Organization:00000000-0000-0000-0000-000000000000 |Thread:   12 |Category: Exception |User: 00000000-0000-0000-0000-000000000000 |Level: Error | CrmException..ctor
     at CrmException..ctor(String message, Exception innerException, Int32 errorCode, Boolean isFlowControlException)
     at CrmException..ctor(String message, Exception innerException, Int32 errorCode)
     at Exceptions.ThrowIfGuidEmpty(Guid parameter, String name)
     at OrganizationSdkServiceInternal.Retrieve(String entityName, Guid id, ColumnSet columnSet, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType)
     at InprocessServiceProxy.RetrieveCore(String entityName, Guid id, ColumnSet columnSet)
     at OrganizationServiceProxy.Retrieve(String entityName, Guid id, ColumnSet columnSet)
     at EntityDictionary.TryRetrieveEntity(String key)
     at EntityDictionary.System.Collections.Generic.IDictionary<System.String,Microsoft.Xrm.Sdk.Entity>.get_Item(String key)
     at VisualBasicValue`1.GetValueCore(ActivityContext context)
     at VisualBasicValue`1.TryGetValue(ActivityContext context, TResult& value)
     at InArgument`1.TryPopulateValue(LocationEnvironment targetEnvironment, ActivityInstance activityInstance, ActivityContext resolutionContext)
     at ActivityInstance.ResolveArguments(ActivityExecutor executor, IDictionary`2 argumentValueOverrides, Location resultLocation, Int32 startIndex)
     at ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)
     at ActivityExecutor.OnExecuteWorkItem(WorkItem workItem)
     at Callbacks.ExecuteWorkItem(WorkItem workItem)
     at Scheduler.OnScheduledWork(Object state)
     at SendOrPostThunk.UnhandledExceptionFrame(Object state)
     at CallbackHelper.InvokeWithoutContext(Object state)
     at ScheduledOverlapped.IOCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* nativeOverlapped)
     at IOCompletionThunk.UnhandledExceptionFrame(UInt32 error, UInt32 bytesRead, NativeOverlapped* nativeOverlapped)
     at _IOCompletionCallback.PerformIOCompletionCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)
    >Crm Exception: Message: Expected non-empty Guid., ErrorCode: -2147220989, InnerException: System.ArgumentException: Expected non-empty Guid.
    Parameter name: id

    Tuesday, March 22, 2011 8:12 AM
  • Hello,

    Please tell me - if you want to deactivate your workflow and edit it, does it display any parsing errors in the workflow designer? If you have any errors, correct them and re-enable your workflow.


    Cornel Croitoriu - Senior Software Developer & Entrepreneur

    If this post answers your question, please click "Mark As Answer" on the post and "Mark as Helpful"

    Biz-Forward.comCroitoriu.NET


    Tuesday, March 22, 2011 8:36 AM
  • Hello,

    when i try to edit the workflow it does not display any error. I can activate and deactivate it normally.

    Michal

    Tuesday, March 22, 2011 9:21 AM
  • I've found that the only way around this error is to delete the workflow and re-create it, or delete all the steps in the workflow and re-create them. No idea what the cause of the error is; it was quicker for me to nuke and redo.

    Anu

    • Proposed as answer by Mike4crm_ Monday, March 25, 2013 12:11 PM
    Tuesday, June 14, 2011 3:11 PM
  • MS KB article says it's fixed in roll up 4 ..see below

    http://support.microsoft.com/kb/2556167


    MayankP
    My Blog
    Follow Me on Twitter

    Wednesday, February 22, 2012 4:25 PM
  • I have all the latest rollups installed, but the problem still exists

    However following explains where do i face the problem and how i overcome this, read here :)

    http://ameedsheikh.wordpress.com/2012/07/29/expected-non-empty-guid-error-when-using-outargument/


    • Proposed as answer by ameed sheikh Sunday, July 29, 2012 10:03 AM
    • Edited by ameed sheikh Sunday, July 29, 2012 10:11 AM
    Sunday, July 29, 2012 10:03 AM
  • Hi Ahmed,

    please read my blog article for the same..

    http://mayankp.wordpress.com/2012/04/03/crm-2011-custom-workflow-error/

    hope this helps..


    MayankP
    My Blog
    Follow Me on Twitter

    Monday, July 30, 2012 8:43 AM
  • Hi Mayan,

    Its Ameed :),

    Well, i actually read your blog earlier, and ofcourse that also is a way to resolve this situation. However instead of adding an additional success / failure bool OutArgument, i resorted on this approach, and then checked in the next step of workflow if the returned EntityReference has something. In case the code activity does not find a matching record, it will just assign it a new Guid and thus the subsequent check condition in workflow will simply say that instance is null, and thus follow the appropriate path. Hope you read my blog article too.

    Kind regards

    Ameed

    Monday, July 30, 2012 8:49 AM
  • Thanks Ameed..

    MayankP
    My Blog
    Follow Me on Twitter

    Monday, July 30, 2012 12:32 PM