locked
Problem - Workflow goes into waiting while sending email to unresolved email address RRS feed

  • Question

  • Hi,

    We are facing workflow going into waiting problem from long time.

    Functionality is:

    Whenever inbound email is received , auto reply is sent to customer as an acknowledgement.

    Email is being received by customer (i.e. unresolved email address in 90% of scenarios). However workflow remains in wait state.

    We are using MS CRM 2011 and roll up 10.

    Your inputs are highly appreciated.

    Thanks!

    Friday, September 20, 2013 5:35 AM

All replies

  • Hi,

    You will need to enable sending emails to unresolved recipients - http://wingstech9.blogspot.co.uk/2011/11/send-email-to-unresolved-email-id-in-ms.html

    hth,

    Scott


    Scott Durow
    Blog www.develop1.net    Follow Me
    Rockstar365
    If this post answers your question, please click "Mark As Answer" on the post and "Mark as Helpful"

    Friday, September 20, 2013 9:04 AM
    Answerer
  • Hi,

    This option has already been enabled. I have already written that emails are being received by customer. Any other possibility?

    Thanks!

    Monday, September 23, 2013 1:03 PM
  • Hi,

    What error does the workflow report (do a search for  system jobs and look at the ErrorMessage attribute)? Which step does it error on?

    Scott


    Scott Durow
    Blog www.develop1.net    Follow Me
    Rockstar365
    If this post answers your question, please click "Mark As Answer" on the post and "Mark as Helpful"

    Monday, September 23, 2013 1:18 PM
    Answerer
  • Hi,

    The given key is not present in dictionary.

    Thanks!

    Monday, September 23, 2013 1:19 PM
  • Can you not see the full stack trace - if you open up the 'Details' section there should be more information - also which step is it failing on?

    Scott Durow
    Blog www.develop1.net    Follow Me
    Rockstar365
    If this post answers your question, please click "Mark As Answer" on the post and "Mark as Helpful"

    Monday, September 23, 2013 1:22 PM
    Answerer
  • Workflow paused due to error: Unhandled Exception: System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
       at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
       at Microsoft.Xrm.Sdk.Entity.get_Item(String attributeName)
       at Microsoft.Crm.Workflow.ConditionHandlerPartyList.GetPartyFromEntityList(EntityCollection args)
       at Microsoft.Crm.Workflow.ConditionHandlerPartyList.Equal(Object primaryValue, Object[] values)
       at Microsoft.Crm.Workflow.WorkflowContextBase.EvaluateCondition(ConditionOperator op, Object primaryValue, Object[] values)
       at Microsoft.Crm.Workflow.Services.ExpressionServiceBase.EvaluateCondition(ConditionOperator conditionOperator, Object operand, Object[] parameters)
       at Microsoft.Crm.Workflow.Activities.EvaluateCondition.Execute(CodeActivityContext context)
       at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager)
       at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)
    Monday, September 23, 2013 1:54 PM
  • Which step is this happening on? Looks like it's a condition?

    Scott Durow
    Blog www.develop1.net    Follow Me
    Rockstar365
    If this post answers your question, please click "Mark As Answer" on the post and "Mark as Helpful"

    Monday, September 23, 2013 2:00 PM
    Answerer
  • These are conditions:

    Email status reason equals received

    email direction equals incoming

    email to equals service mail

    email subject does not contain mail delivery failed

    • Edited by Knopix007 Monday, September 23, 2013 2:13 PM
    Monday, September 23, 2013 2:11 PM
  • So it fails on this condition and doesn't do anything after this one?

    Try removing the conditions one by one until it succeeds, this will give you the problem one.


    Scott Durow
    Blog www.develop1.net    Follow Me
    Rockstar365
    If this post answers your question, please click "Mark As Answer" on the post and "Mark as Helpful"

    Monday, September 23, 2013 2:19 PM
    Answerer
  • We feel that it is failing due to email "TO" equals service mail.

    Why should it happen?

    Monday, September 23, 2013 2:20 PM
  • I'm guessing because the check doesn't work if there is an unresolved participant. You may need to work around this limitation.


    Scott Durow
    Blog www.develop1.net    Follow Me
    Rockstar365
    If this post answers your question, please click "Mark As Answer" on the post and "Mark as Helpful"

    Monday, September 23, 2013 2:21 PM
    Answerer
  • Exactly! How to work with this situation? Because 90 % of incoming emails do not get resolved.
    Monday, September 23, 2013 2:22 PM
  • You might need to create a custom workflow activity to do the comparison if there are no other attributes you can test.

    Scott Durow
    Blog www.develop1.net    Follow Me
    Rockstar365
    If this post answers your question, please click "Mark As Answer" on the post and "Mark as Helpful"

    Monday, September 23, 2013 2:25 PM
    Answerer
  • Isn't there any out of the box option?
    Monday, September 23, 2013 2:26 PM