Hi, I have a workflow that works on create and update on fieild1 as a background WF, in the code I set the text field field2 to /test/ this is the only thing i do in the WF code. however when checking the workflow history its initiating multiple running processes and failing after due to: /This workflow job was canceled because the workflow that started it includes an infinite loop./ the entity has no other plugin or code that changes field1. even i tested the WF on different entity with same result
what could be the problem?
Thank you
this is my execute method
// Create the context IWorkflowContext context = executionContext.GetExtension<IWorkflowContext>(); if (context == null) { throw new InvalidPluginExecutionException(/Failed to retrieve workflow context./); }
Isn't this the case that you are actually updating the full object again via plugin but you only change the attribute field2?
Regarding workflow triggers, if you are updating the full object again which included also field1, from X to X, workflows will trigger although there was no "change".
This is a classic scenario for workflow infinite loops or extreme unwanted bursts of workflow executions.
Was this reply helpful?YesNo
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.