web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Attempting to Stop Inf...
Power Automate
Answered

Attempting to Stop Infinite Flow

(0) ShareShare
ReportReport
Posted on by 8

Hi,

 

I've been reading up on this forum for the issue I have with a flow that loops non-stop.

 

Currently, my flow kicks off when the status in my list is flagged as "pending." However, the problem is that multiple runs occur shortly after for the same instance.

 

To stop this, I'm attempting to use the Trigger Conditions option for my "When and Item or File is Modified" trigger. I created a new column called "RunFlag" and have set the default value to No. After the trigger runs it will update this column to Yes.

 

Here's my condition: @contains(triggerBody()?['RunFlag'], 'No')

 

The problem is when I flip my status to Pending on my list it's no longer triggering. Am I missing something?

 

I'll note I've tried adding the No value manually to my column without luck. I've tried reversing the conditions and also no luck.

 

Thanks!

Categories:
I have the same question (0)
  • PowerRanger Profile Picture
    3,458 Super User 2024 Season 1 on at

    @Chrisal23 is this a sharepoint "yes/no column"? If so, use false in your trigger condition instead of "No".

     

  • Kaif_Siddique Profile Picture
    2,108 Super User 2024 Season 1 on at

    Stopping Infinite Loops When Updating SharePoint List Items - Step by step procedure

    https://o365scott.blog/2019/12/18/stopping-infinite-loops-when-updating-sharepoint-list-items/

     

    Hope this will hep you.

     

    If you like my response, please give it a Thumbs Up.
    If this helps, please Accept as solution.

     

    Regards
    Kaif

  • Verified answer
    v-liwei-msft Profile Picture
    Microsoft Employee on at

    Hi @Chrisal23 ,

     

    The problem may be because the item you are modifying is not the first time it has been modified. 

    In the first modification, the flow is triggered and then the RunFlag is modified to Yes, so when you modify this column later, the flow is no longer triggered because the TriggerCondition is not satisfied. 

    You can use the method without adding TriggerCondition: 

    1. Add Get changes for an item or a file (properties only). 

    2. Add Condition to determine whether RunFlag has been changed during this modification. 

    3. If the result is equal to false, continue your process. If the result is equal to true, the stream is terminated.

    vliweimsft_0-1662368363315.png

    vliweimsft_1-1662368375037.png

    vliweimsft_2-1662368389731.png

     

     

    Best Regards,

    Levi

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 304

#2
David_MA Profile Picture

David_MA 245 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 243 Most Valuable Professional

Last 30 days Overall leaderboard