Skip to main content

Notifications

Microsoft Dynamics CRM forum
Answered

Endless loop in Flow - Update record

Posted on by 35

Hi,

i am stuck in my flow as it gives me the warning "This flow may run into an infinite loop".

So I added a condition as you can see in the screenshots and still gives me this warning.

The weird thing is, I don't want to update the same field which is triggering at the beginning, the field to update is another one.

so I don't see why its giving me the warning.

Could it be because I have another flow which is triggering on the field I want to update? But its triggering on another value of this field??

pastedimage1682501059231v2.png

pastedimage1682501113085v3.png

pastedimage1682501134806v4.png

  • Verified answer
    Manoj Mane Profile Picture
    Manoj Mane 1,012 on at
    RE: Endless loop in Flow - Update record

    Hi smar.sus,

    It is just a warning , you can ignore that one but just verify by running the flow once and check it is not going to infinite loop.



    Thanks,

    Manoj Mane.
    Please mark this as VERIFIED if it helps. image

  • smar.sus Profile Picture
    smar.sus 35 on at
    RE: Endless loop in Flow - Update record

    Hi Abdul,

    thanks for your quick reply.

    I think I don't get it, so you mean, in my case if the component "Installation Status" which i want to update at the end is not in the first step, the infinite loop can happen?

    I also have a weird bug with this flow. When it triggers and I check the record the bpf looks like this:

    pastedimage1682513705707v1.png

    in all other cases it looks correct

    pastedimage1682513813964v2.png

  • Suggested answer
    Abdul Wahab Profile Picture
    Abdul Wahab 12,070 Moderator on at
    RE: Endless loop in Flow - Update record

    Hi smar.sus,

    This is a warning, not an error. As per my little thoughts, you can still save your flow and it will be triggered as expected. The thing is when you update the column which is not added in the components 'When field "review status" changes. This will trigger the Power Automate one more time till infinite until you will not change the value of the column other than written in the filter (skt_reviewstatusops = 921720001). Are you getting what I tried to explain?

    For more details: 

    1. Solved: Infinite Loop in Flow - Power Platform Community (microsoft.com)
    2. Solved: Infinite trigger loop - Power Platform Community (microsoft.com)
    3. How to avoid infinite trigger loop in Power Automate (tomriha.com)
    4. Power Automate Flows can cause infinite loops when they update the same records or items that trigger them. This can waste monthly Flow runs and cause performance issues. To prevent infinite loops, one can use conditional logic, the Terminate step, or a dedicated Flow user. Another option is to add a trigger condition inside the trigger settings, which blocks the Flow from starting if the condition is not true.

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.

Helpful resources

Quick Links

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,524 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,493 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans