I am new to D365 and trying to learn how to create a Flow using Power Automate as I need to update fields on a form and send out email notifications if and when certain criteria happen.
I have created a Flow btu I am getting a /warning/ that states /Actions in this Flow may result in an infinite trigger loop. Please ensure you add appropriate conditional checks to prevent this flow from triggering itself.”
I am not sure how to remedy this. Can someone help me resolve this, or possibly refer me to some training that can explain how to clear this warning?
Here is the Trigger. There is no specific criteria, as I want the Flow to run whenever a Regulatory Case is Modified (Edited). The Flow should then check specific conditions set within the many Options, and if the answer is "Yes" then the system updates fields, and possibly sends out an email. If the answer to the Option is "No" then it goes to the next step, where there is another decision (Option) to evaluate, and again, if "Yes", then do "this", if "No" then do nothing and go on to the next step. This continues through multiple steps, updating the record is needed, or doing nothing if nothing is needed to be changed or updated.
The Flow is built with multiple layers of Decisions (Options - If the record = "this" then do "that", if not, then do "these".
If it's a "Must" to limit when the Flow runs only when specific fields are changed, then I guess I'll add them to the trigger. I think this limits the automation, but OK.
If anyone has any additional input, please let me know how to clear this Warning.
Thank you Adrian Begovich for the article. It was very informative.
I am still getting the Warning Messages, I thought maybe if I used some screen shots someone might be able to help with this.
Here is the Warning:
When I click the Warning, it takes me here:
If I Open up the "Yes" to get to the added step the article talks about, adding a Pre-update Option making sure the fields are not set to those values already.
Then you Open up the 'Yes" to get to the Internal Case Field Update.
So as you can see, once the fields are updated, then the previous Option should answer "No" and stop, as there are no actions after that.
To prevent the infinite looping in Power Automate, you can use a flag field(could be a true or false field). If your desired operation is accomplished, you can update the flag field and make the condition according to the flag field. By this way you can prevent the infinite looping in Power Automate.
If you found this helpful, like and verify my answer
This article explains how to avoid an infinite trigger loop in Power Automate.
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.