cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Carmen15
Helper III
Helper III

Infinite loop when an item is updated...the solutions found not working!

Hi, 

 

I have a flow that starts with " When an Item is created or modified" with the following formula on Settings :  @or(equals(triggerOutputs()?['body/ApprovalReceivingStatus'], 'Approved'), equals(triggerOutputs()?['body/ApprovalIssuingStatus'], 'Approved'), equals(triggerOutputs()?['body/ApprovalIssuingStatus'], 'No need approval'), equals(triggerOutputs()?['body/ApprovalReceivingStatus'], 'No need approval')) 

 

I need to include an " Update Item" but the warning message is instantly appearing that the flow may trigger infinite loop . 

 

I have searched for various solution on this site and others specialized sites and tried different solutions but the warning message still appears . 

 

What is the solution that never fails and is compatible with my formula above as well ? 

6 REPLIES 6
Mira_Ghaly
Dual Super User II
Dual Super User II

@Carmen15 

This is a warning and is intending only to make sure you are not causing your flow to run in infinte loop and as long as you are adding a filter on your trigger settings and making sure you are not updating same properties you specified in the trigger then you can safely ignore this warning.

 

If this post helps you with your problem, please mark your as Accepted solution.If you like my response, please give it a Thumbs Up.

Blog: here
Carmen15
Helper III
Helper III

@Mira_Ghaly 

If I ignore the message the flow is getting into a loop and is sending multiple similar emails. 

 

Mira_Ghaly
Dual Super User II
Dual Super User II

@Carmen15

Can u please share detailed screens of your flow trigger settings and your update item step.

If there is a loop then you must be updating one of the fields you are using as ur flow trigger 

If this post helps you with your problem, please mark your as Accepted solution.If you like my response, please give it a Thumbs Up.

Blog: here
Carmen15
Helper III
Helper III

@Mira_Ghaly 

Please see below :

 

 

Carmen15_1-1611581790612.png

 

Carmen15_2-1611581826513.pngCarmen15_3-1611581854578.pngCarmen15_4-1611581871427.png

 

 

Carmen15
Helper III
Helper III

The Outputs into the condition are referring to the results of the composes : 

Carmen15_5-1611581983764.png

 

Carmen15
Helper III
Helper III

Hi 

 

I have changed the trigger condition and instead of "When an item or a file is created or modified" I choose "When an Item or a file is modified" and it seams that the flow is not returning any error/ warning message , but is not starting to run . 😞 

Do you have any solution to make the flow to run ? 

Below the print screens wit how the flow looks like .

 

Carmen15_0-1611649915639.pngCarmen15_1-1611649933742.png

 

 

Carmen15_2-1611650012384.png

1st : @or(equals(triggerOutputs()?['body/ApprovalReceivingStatus'], 'Approved'), equals(triggerOutputs()?['body/ApprovalIssuingStatus'], 'Approved'), equals(triggerOutputs()?['body/ApprovalIssuingStatus'], 'No need approval'), equals(triggerOutputs()?['body/ApprovalReceivingStatus'], 'No need approval'))

2nd :@equals(triggerOutputs()?['body/RequestStatus'], 'Awaiting I&R Approval')

 

For composes : 

Carmen15_3-1611650090185.png

for conditions: 

Carmen15_4-1611650129464.pngCarmen15_5-1611650192490.png

condition 2 & 3 have the same details in send email & update item 

Carmen15_6-1611650244570.png

Carmen15_7-1611650276210.png

 

 

Helpful resources

Announcements
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Users online (78,880)