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).
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