cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
VinodKumar
Regular Visitor

'When an item is created or modified' on SP list, flow scans or updates all records instead of single item

On using 'Update item' under 'When an item is created or modified', flow scans or updates all records instead of single item.

 

It provides below warning whereas it works fine using 'When an item is created'

Actions in this flow may result in an infinite trigger loop. Please ensure you add appropriate conditional checks to prevent this flow from triggering itself.

 

Looks like bug in using 'When an item is created or modified'. Please look into it

 
6 REPLIES 6
RobElliott
Super User
Super User

You need to make sure that you have specified the ID of the item you are updating in the SP list. If you can post an image of the flow here it will help to isolate the cause of your problem.

Rob

Yes, I am using ID to update the item, please refer screenshot with warning populated. unfortunately, it updates all items in the list if any new item is added or existing one edited.

IssueWithCreateUpdateItem.JPG

v-zhos-msft
Solution Sage
Solution Sage

Hi VinodKumar

According to your description, the issue is that the item you created or modified and the item you want to update are the same one.

Once the Update item run success, it will trigger the ‘when an item is created or modified’ again.

The flow will result in an infinite trigger loop.

I have made a same flow on my side, the same issue occurred.

12.png

 

Could you please share a screenshot of your List?

Which value you want to update?

Then I can do more alaysis for you.

Best Regards,

Zhongys

IssueWithCreateUpdateItemSP.JPG

Ideally, the item I edit should only get updated & not all.

 

It works fine using 'When an item is created' as only columns corresponding to new item get updated.

 

whereas as thats not the case with using ''When an item is created or modified' as it update all items in the list.

 

Seems like a bug.

Hi @VinodKumar,

This is due to updataion of item, flow going into recurrence, Please add some condition before update the item, e.g check coloumn is empty or not. 

There is a similar case you can take a reference:

https://powerusers.microsoft.com/t5/General-Flow-Discussion/Flow-Seems-to-repeat-every-5-minutes/m-p...

 

Best Regards,

Zhongys

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

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

Users online (4,814)