locked
Workflow not working as planned RRS feed

  • Question

  • I have CRM 4.0 , with all the latest patches\upgrades.
    I creatd a work flow that looks at an email subject of "unsubcribe me" , no quotes.
    I tried this with just "email, subject contains unsubscribe me" and 
    "email (activity..),subject, contains, unsubscribe me" 
    the workflow appears to fire, but its not doing the actions i put in the workflow.
    those actions are
    1) update the CONTACT's value for Do not Email, and Do Not Bulk Email to be NO
    2) email me that this workflow fired.

    those two actions are NOT being done.
    I have another workorder that looks at changes in the price lists and emails me about those, and THAT works fine.


    help!?
    Tuesday, February 10, 2009 9:29 PM

Answers

  •  

    ok i made a stand alone work order that just updated the contact's setting for do not email and do not bulk mail, and THAT worked perfectly.

    I changed the original workflow to pull THAT work order as a child work order and this is what I got.



    Type a stage description here.

    Check Email [Successfully Completed. Started On: 2/12/2009 2:38:05 PM Completed On:

    2/12/2009 2:38:05 PM]

    If E-mail:From equals [unsubscribe Queue], then:

    No steps have been added.

    Type a stage description here.

    [Failed. A record required by this workflow job could not be found. Started On: 2/12/2009

    2:38:05 PM]

    Start child workflow: Regarding (Contact) ChangeEmail

    Type a stage description here.

    Notify IT

    Send e-mail: Create New Message

    • Proposed as answer by Jim Glass Jr Thursday, February 12, 2009 9:34 PM
    • Marked as answer by Donna EdwardsMVP Thursday, May 14, 2009 10:58 PM
    Thursday, February 12, 2009 8:57 PM

All replies

  • Hi Bonj,

    May be E-mail Router is not configured properly in your system. Just observe.
    Wednesday, February 11, 2009 5:00 AM
  • no, the email router works fine. i have another workflow that works fine.
    this issue is that the workorder runs, but doesn actually perform the update on the contact as prescribed.
    Wednesday, February 11, 2009 2:29 PM
  • How is your workflow deciding which contact to update?
    Wednesday, February 11, 2009 2:58 PM
    Moderator
  • Its set at the org level,
    then it looks for
    Email : subject contains unsubcribe me   
        Update:regarding Contact (here is where it sets the radio buttons for "do not email"
            Send E-mail (this goes to me)
    Wednesday, February 11, 2009 3:08 PM
  • In theory your workflow sounds fine. Have you tried adding test actions before and after the test for the email subject contain unsubscribe.

    You need to isolate whether in fact the workflow is actually called and which steps of the workflow actually get run. Looking at workflow history will help because you will see green ticks against the steps that were executed.
    Wednesday, February 11, 2009 11:41 PM
    Moderator
  • when I look at the workflow via the system jobs,
    I see

    Check Email [Successfully Completed. Started On: 2/12/2009 1:17:35 PM Completed On: 2/12/2009

    1:17:36 PM]

    If E-mail:From equals [unsubscribe Queue], then:

    Notify IT

    Send e-mail: Create New Message

    yet.. nothing is done.
    chagne the check mail to .. subject (usubcribe), same results. says it fired, but nothing happens.

    Thursday, February 12, 2009 7:22 PM
  •  

    ok i made a stand alone work order that just updated the contact's setting for do not email and do not bulk mail, and THAT worked perfectly.

    I changed the original workflow to pull THAT work order as a child work order and this is what I got.



    Type a stage description here.

    Check Email [Successfully Completed. Started On: 2/12/2009 2:38:05 PM Completed On:

    2/12/2009 2:38:05 PM]

    If E-mail:From equals [unsubscribe Queue], then:

    No steps have been added.

    Type a stage description here.

    [Failed. A record required by this workflow job could not be found. Started On: 2/12/2009

    2:38:05 PM]

    Start child workflow: Regarding (Contact) ChangeEmail

    Type a stage description here.

    Notify IT

    Send e-mail: Create New Message

    • Proposed as answer by Jim Glass Jr Thursday, February 12, 2009 9:34 PM
    • Marked as answer by Donna EdwardsMVP Thursday, May 14, 2009 10:58 PM
    Thursday, February 12, 2009 8:57 PM
  • trace log:
    >Crm Exception: Message: Cannot find record to be updated, ErrorCode: -2147200975
    [2009-02-13 13:37:38.4] Process:CrmAsyncService |Organization:6fc8931a-5331-4ff6-83ad-4bb67c720f33 |Thread:   22 |Category: Platform.Workflow |User: 00000000-0000-0000-0000-000000000000 |Level: Error | WorkflowHost.OnWorkflowTerminated
    >Workflow terminated: {D1495CBF-05FA-DD11-BF50-001C23BF83A3} - Microsoft.Crm.CrmException: Cannot find record to be updated
       at Microsoft.Crm.Workflow.Services.UpdateActivityService.Execute(ActivityExecutionContext executionContext, UpdateActivity retrieveActivity)
       at Microsoft.Crm.Workflow.Activities.UpdateActivity.Execute(ActivityExecutionContext executionContext)
       at System.Workflow.ComponentModel.ActivityExecutor`1.Execute(T activity, ActivityExecutionContext executionContext)
       at System.Workflow.ComponentModel.ActivityExecutor`1.Execute(Activity activity, ActivityExecutionContext executionContext)
       at System.Workflow.ComponentModel.ActivityExecutorOperation.Run(IWorkflowCoreRuntime workflowCoreRuntime)
       at System.Workflow.Runtime.Scheduler.Run()
    Friday, February 13, 2009 8:20 PM