Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 46379

Help with infinite loop error in Workflow

$
0
0

Hi There,


I am using MS Dynamics CRM 2011 on premise with Click Dimensions email marketing solution. I've set up a workflow to trigger on certain conditions. I keep getting the following error but cannot see where the infinite loop is. Any assistance would be greatly appreciated. The error message is below.

Thanks

Dave

Plugin Trace:

[Microsoft.Xrm.Sdk.Workflow: Microsoft.Xrm.Sdk.Workflow.Activities.CreateEntity]
[CreateStep73: Send Acknowledgement Email 1 ]

    
    [ClickDimensions.Crm.MsCrm2011Plugins: ClickDimensions.Crm.MsCrm2011Plugins.SendEmailWFPlugin]
    [cea55c7d-5312-e011-8519-78e7d162ee67: ClickDimensions.Crm.MsCrm2011Plugins.SendEmailWFPlugin: Create of cdi_sendemail]
    
    SendEmailWFPlugin: Execute() started.
    Create Email Send record
    Associate cdi_emailsend; emailsendId:2bb22595-c6bc-e611-8bd7-0050568251a8; relatedEntityName:contact; relatedEntityId:10575c09-1664-4394-88e8-8b600187c410
    
    


Error Message:

Unhandled Exception: Microsoft.Xrm.Sdk.InvalidPluginExecutionException: Error in SendEmailWFPlugin plugin, 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.Stack:
Server stack trace:
   at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
   at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
   at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
   at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]:
   at Microsoft.Crm.Sandbox.SandboxOrganizationService.Execute(String operation, Byte[] serializedRequest)
   at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
   at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg, Int32 methodPtr, Boolean fExecuteInContext)

Exception rethrown at [1]:
   at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
   at Microsoft.Crm.Sandbox.ISandboxOrganizationService.Execute(String operation, Byte[] serializedRequest)
   at Microsoft.Crm.Sandbox.SandboxOrganizationServiceWrapper.ExecuteInternal(OrganizationRequest request)
   at Microsoft.Crm.Sandbox.SandboxOrganizationServiceWrapper.AssociateInternal(String entityName, Guid entityId, Relationship relationship, EntityReferenceCollection relatedEntities)
   at Microsoft.Crm.Sandbox.SandboxOrganizationServiceWrapper.Associate(String entityName, Guid entityId, Relationship relationship, EntityReferenceCollection relatedEntities)
   at ClickDimensions.Crm.MsCrm2011Plugins.SendEmailWFPlugin.ProcessSendEmailWFPlugin(IOrganizationService service, ITracingService tracer, Entity entity)
   at ClickDimensions.Crm.MsCrm2011Plugins.SendEmailWFPlugin.Execute(IServiceProvider serviceProvider);
;
Server stack trace:
   at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
   at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
   at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
   at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]:
   at Microsoft.Crm.Sandbox.SandboxOrganizationService.Execute(String operation, Byte[] serializedRequest)
   at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
   at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg, Int32 methodPtr, Boolean fExecuteInContext)

Exception rethrown at [1]:
   at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
   at Microsoft.Crm.Sandbox.ISandboxOrganizationService.Execute(String operation, Byte[] serializedRequest)
   at Microsoft.Crm.Sandbox.SandboxOrganizationServiceWrapper.ExecuteInternal(OrganizationRequest request)
   at Microsoft.Crm.Sandbox.SandboxOrganizationServiceWrapper.AssociateInternal(String entityName, Guid entityId, Relationship relationship, EntityReferenceCollection relatedEntities)
   at Microsoft.Crm.Sandbox.SandboxOrganizationServiceWrapper.Associate(String entityName, Guid entityId, Relationship relationship, EntityReferenceCollection relatedEntities)
   at ClickDimensions.Crm.MsCrm2011Plugins.SendEmailWFPlugin.ProcessSendEmailWFPlugin(IOrganizationService service, ITracingService tracer, Entity entity)
   at ClickDimensions.Crm.MsCrm2011Plugins.SendEmailWFPlugin.Execute(IServiceProvider serviceProvider); CONTEXT INFORMATION: ----------
UserId: 8d331333-d65b-e111-84e9-00155d4a2308
OrganizationId: d7e6ef1d-7b5b-46b7-9755-6a0d1aa29914
OrganizationName: EdinburghBusinessSchool
MessageName: Create
Stage: 20
Mode: 0
PrimaryEntityName: cdi_sendemail
SecondaryEntityName: none
BusinessUnitId: d9ad9246-2c4f-e111-97bc-00155d4a2205
CorrelationId: 4535b070-7a59-4552-9003-18bf7cf0224e
Depth: 7
InitiatingUserId: 8d331333-d65b-e111-84e9-00155d4a2308
IsExecutingOffline: False
IsInTransaction: True
IsolationMode: 2
Mode: 0
OperationCreatedOn: 07/12/2016 21:46:19
OperationId: 00000000-0000-0000-0000-000000000000
PrimaryEntityId: 27b22595-c6bc-e611-8bd7-0050568251a8
OwningExtension LogicalName: sdkmessageprocessingstep
OwningExtension Name: ClickDimensions.Crm.MsCrm2011Plugins.SendEmailWFPlugin: Create of cdi_sendemail
OwningExtension Id: cea55c7d-5312-e011-8519-78e7d162ee67
SharedVariables: DefaultsAddedFlag: True;
InputParameters: Target:
 LogicalName: cdi_sendemail
 EntityId: 27b22595-c6bc-e611-8bd7-0050568251a8
 Attributes: [cdi_sendemailid: 27b22595-c6bc-e611-8bd7-0050568251a8; cdi_fromname: Edinburgh Business School; cdi_fromrecordowner: False; owningbusinessunit: Microsoft.Xrm.Sdk.EntityReference; modifiedonbehalfby: ; statecode: Microsoft.Xrm.Sdk.OptionSetValue; modifiedon: 07/12/2016 21:46:19; statuscode: Microsoft.Xrm.Sdk.OptionSetValue; createdby: Microsoft.Xrm.Sdk.EntityReference; cdi_emailtemplateid: Microsoft.Xrm.Sdk.EntityReference; ownerid: Microsoft.Xrm.Sdk.EntityReference; cdi_subject: ${Recipient.contact.firstname[0]!""} - Thanks for getting in touch; cdi_fromemail: info@ebs.hw.ac.uk; owninguser: Microsoft.Xrm.Sdk.EntityReference; modifiedby: Microsoft.Xrm.Sdk.EntityReference; cdi_contactid: Microsoft.Xrm.Sdk.EntityReference; createdon: 07/12/2016 21:46:19; ]
OutputParameters:
PreEntityImages:
PostEntityImages:
----------



Viewing all articles
Browse latest Browse all 46379

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>