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 / Flow Issue - Infinite ...
Power Automate
Unanswered

Flow Issue - Infinite Trigger Loop

(0) ShareShare
ReportReport
Posted on by 13

Good Day,

 

I have a flow created that should update file properties on SharePoint after specific conditions are met. The issue that I am facing is that it runs the flow and the updates are made, however, the flow keeps looping/running and asks me for approval after it has been granted. 

 

I've tried using the control Terminate, however that still doesnt help. 

Categories:
I have the same question (0)
  • Expiscornovus Profile Picture
    33,189 Most Valuable Professional on at

    Hi @Kmakhanya,

     

    Can you share a couple of screenshots of your current flow setup? 

  • Kmakhanya Profile Picture
    13 on at

    2.png

    3.png

    1.png

     

  • Expiscornovus Profile Picture
    33,189 Most Valuable Professional on at

    Hi @Kmakhanya,

     

    Thanks for sharing the screenshots.


    Just to double check. It looks like you have a yes/no field in SharePoint called must it be approved, correct?

     

    Are you updating the value of that field to No in the update file properties: if approved & if rejected actions?

  • Kmakhanya Profile Picture
    13 on at

    Hi @Expiscornovus 

     

    Yes, there is a field in SharePoint called "must it be approved"

     

    No, that field doesnt need to be updated. The flow should only run if the following conditions are met on sharepoint:

    (1) "Status" field is equal to Final

    (2) "Must it be approved" field is equal to Yes

  • Expiscornovus Profile Picture
    33,189 Most Valuable Professional on at

    Hi @Kmakhanya,

     

    Ok, thanks for clarifying that.

     

    In that case can you share a screenshot or just copy/paste the raw inputs of one of the flow runs which shouldn't happen. So, we can check which values it had and why it is still meeting your condition action and asking for approval.

  • Kmakhanya Profile Picture
    13 on at

    Hi, please find below screenshots

     

    6.png

    5.png

    4.png

  • Kmakhanya Profile Picture
    13 on at

    Sorry, please swap the second and last image (with regards to the order)

  • Expiscornovus Profile Picture
    33,189 Most Valuable Professional on at

    Hi @Kmakhanya,

     

    Just to double check. I see you are setting the items to either Approved or Rejected in the update file properties action. However, in your condition action your are using the values Approve or Reject. That looks like a typo, is that correct?

     

    Secondly, I was looking for the values which you were using. You can see those when the flow has run. Go to the history of the one which was failing/didn't work property. Expand the trigger action and look at the outputs (I said inputs in my previous reply, I should have said outputs 😁)

     

    flowrunhistory_outputs.png

  • Pstork1 Profile Picture
    68,707 Most Valuable Professional on at

    Normally to solve this you need to add a trigger condition that prevents the flow from running a second time.  The easiest way to do that is to create the flow using a service account and then add a trigger condition to keep it from firing if the Modified By field is the service account.  You can get specific details here:
    How to avoid infinite trigger loop in Power Automate (tomriha.com)

  • Expiscornovus Profile Picture
    33,189 Most Valuable Professional on at

    Thanks for sharing @Pstork1, that is definitely a great approach, a trigger condition based on the modified by field. 

     

    I was trying to find a solution with the current setup, a trigger condition based on the status field. However, I was still collecting all the details for that 😁

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