web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested Answer

Issue with Send Direct Email-Some Recipients Receiving 100+ copies of the Same Email

(0) ShareShare
ReportReport
Posted on by 15

Hello,

My company is using an on premise version of Dynamics CRM 2016 and we have an email template that has been used for months to email to multiple recipients using the 'Send Direct Email' functionality available within Advanced Find (see screenshot below).  

pastedimage1652304187798v2.png

Beginning Monday, May 9th we started having an issue where some recipients would receive the same email every five minutes.  Again, it doesn't happen all the time.  Also, there is only one user sending the emails.  

I'm including the CRM event log below which mentions an infinite loop, but why would this occur all of the sudden when nothing has changed and how do I fix it?  We've restarted the Asynchronous Processing Service, CRM server and email router service.  Any suggestions on how to resolve this issue would be greatly appreciated.

CRM Event Log:

Host JobId: 41731511-98cf-ec11-8121-0050568974b2 OrgId:52cb5181-44da-4c26-b1c8-8ccb58c77bd9 JobType:10; ErrorMessage:Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: This workflow job was canceled because the workflow that started it included an infinite loop. Correct the workflow logic and try again. For information about workflow logic, see Help.Detail:

<OrganizationServiceFault xmlns:i=http://www.w3.org/2001/XMLSchema-instance xmlns=http://schemas.microsoft.com/xrm/2011/Contracts>

  <ErrorCode>-2147204734</ErrorCode>

  <ErrorDetails xmlns:d2p1=http://schemas.datacontract.org/2004/07/System.Collections.Generic />

  <Message>This workflow job was canceled because the workflow that started it included an infinite loop. Correct the workflow logic and try again. For information about workflow logic, see Help.</Message>

  <Timestamp>2022-05-09T13:01:07.9468929Z</Timestamp>

  <InnerFault i:nil="true" />

  <TraceText i:nil="true" />

</OrganizationServiceFault>

   at Microsoft.Crm.Workflow.WorkflowContextBase.RetrievePrimaryEntity(EntityDependencyBase entityDependency)

   at Microsoft.Crm.Workflow.WorkflowContextBase.RetrieveEntityInstances()

   at Microsoft.Crm.Workflow.ActivityHost.StartWorkflowExecution(Activity workflow, ICommonWorkflowContext context)

   at Microsoft.Crm.Workflow.ActivityHostBase.StartWorkflow(ICommonWorkflowContext context, Activity preLoadedActivity)

ErrorCode:-2147204734 ResultCode:31 Machine CRMPROD01: A Microsoft Dynamics CRM Asynchronous Processing Service operation of type %2 has failed

Organization ID: %3

Organization Unique Name: %4

Error code: %5

Error description: %6

I have the same question (0)
  • Suggested answer
    Yoshika Suzuki Profile Picture
    Microsoft Employee on at

    Will email stop if you stop the workflow?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
ManoVerse Profile Picture

ManoVerse 166 Super User 2026 Season 1

#2
Jimmy Passeti Profile Picture

Jimmy Passeti 51 Most Valuable Professional

#2
NeerajPawar Profile Picture

NeerajPawar 51

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans