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

Notifications

Announcements

Community site session details

Community site session details

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

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
    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard