Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM forum
Suggested answer

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

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

Categories:
  • Suggested answer
    RE: Issue with Send Direct Email-Some Recipients Receiving 100+ copies of the Same Email

    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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,564 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,651 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans