1
Vote

"workflow that started it included an infinite loop"

description

Hi, I keep getting the error below, I believe it is linked on how CRM handles consecutive calls of the same workflow to the same entity, as per described here: https://technet.microsoft.com/en-us/library/dn531079.aspx.

Is there a fix planned for this?

Exception: Exception 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.,
Exception Stack Tracee:
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, Object[]& outArgs)
at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)

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 Dynamize.AsyncBatchProcess.ActionHandler.AsyncBatchProcessActionHandler.ApplyWorkflowRule(EntityCollection targetRecords, Guid workflowProcessId)
at Dynamize.AsyncBatchProcess.ActionHandler.AsyncBatchProcessActionHandler.HandleTargetRecordsQuery(String fetchXMLquery, Entity action)
at Dynamize.AsyncBatchProcess.ActionHandler.AsyncBatchProcessActionHandler.HandleProcessActivation(Entity batchProcess)
at Dynamize.AsyncBatchProcess.ActionHandler.AsyncBatchProcessActionHandler.Execute(CodeActivityContext executionContext)

comments

tiagocc wrote Jan 7, 2016 at 10:42 AM

I'm also getting the very same error.

I have an hourly schedule batch process and it executes for a couple of times before falling on the above error.

There's no pattern and I've been digging on this for quite some time with no success.

CRM 2016 on prem, but it was failing on 2015 on prem too.

Thanks