cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
DannyB72
Frequent Visitor

Trigger "file created or modified" triggers endless on all items

Hi,

since a couple of days, a perfect working flow with "file created or modified"-trigger trigger itselfs continuously on all items. Someone have the same observation?

Greetings,

Danny

1 ACCEPTED SOLUTION

Accepted Solutions
NiloferA
Super User
Super User

Hello @DannyB72 ,

Does your Flow have an Update File properties action in it?

If your Flow is being triggered on item/file modified and if it updates the same item/file - this will cause an infinite loop. 

To avoid this, you can 

  1.  If you are using a Service Account, add a Trigger Condition to run the Flow only if Modified by Does not equal Service Account
  2. Add a Column in your List/Library which will act as a Flag (can be SOT or Yes/No Column), add a condition in your Flow to Run only if the Flag is blank or set to No and in Update Properties Action update the Flag to Yes.

Please hit Kudos or Accept this Reply as a Solution if it resolved your problem!

View solution in original post

3 REPLIES 3
NiloferA
Super User
Super User

Hello @DannyB72 ,

Does your Flow have an Update File properties action in it?

If your Flow is being triggered on item/file modified and if it updates the same item/file - this will cause an infinite loop. 

To avoid this, you can 

  1.  If you are using a Service Account, add a Trigger Condition to run the Flow only if Modified by Does not equal Service Account
  2. Add a Column in your List/Library which will act as a Flag (can be SOT or Yes/No Column), add a condition in your Flow to Run only if the Flag is blank or set to No and in Update Properties Action update the Flag to Yes.

Please hit Kudos or Accept this Reply as a Solution if it resolved your problem!

DannyB72
Frequent Visitor

Hello @NiloferA ,

yes, the flow has an update action inside but i have placed a trigger condition like you mentioned in your point 1. The flow is also executed by a distinct service-account. The flow has worked without any error for months. 

And suddenly, the flow triggers randomly in time and also on items that are not changed or created by any user.

Very confusing...

 

Thx for your help 🙂

 

NiloferA
Super User
Super User

That's great @DannyB72 , Please Accept the above Reply as a Solution to close the thread and help others find the solution faster.

Glad to be of help!

Helpful resources

Announcements
2022 Release Wave 1 760x460.png

2022 Release Wave 1 Plan

Power Platform release plan for the 2022 release wave 1 describes all new features releasing from April 2022 through September 2022.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Users online (1,367)