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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / My flow keeps on runni...
Power Automate
Unanswered

My flow keeps on running infinitely

(0) ShareShare
ReportReport
Posted on by 11

Hi,

 

My requirement is, I have 2 SharePoint sites (for example Site A and Site B), Both the sites should be in sync suppose if anything is created or modified (Folders, Sub folders, Files) in site A it should be sync the same folder, subfolder or  files in site B and same goes for Site B also if anything created or modified (Folders, Sub folders, Files) in site B it should be sync the same folder, subfolder or  files in site A and every time when any creation or modification is happening it should send a mail.

 

To achieve my requirement, I have created 2 flow one flow to sync Site A to Site B and another flow to sync the Site B to Site A, The sync from Site A to B and B to A is working fine.

 

But the problem is mail functionality, I am continuously getting a mail it's running in infinite loop and my inbox is full of mails.

Please help me to resolve this infinite mail coming. 

Categories:
I have the same question (0)
  • ScottShearer Profile Picture
    25,290 Most Valuable Professional on at

    @saumitra 

    You do have an infinite loop.  When an item is created in list 1 a flow creates an item in list two.  That starts a Flow to sync with list 1 which starts a Flow to sync with list 2.......

    Here is a link to a post that gives a number of alternatives to resolve your issue.

    The easiest way to stop it is for you to add a condition at the to of you Flow.  The condition should check to see if the item was modified by you.  If so, use a control/terminate action to stop the Flow.  This assumes that your connection is used in the sync.  A slicker way would be to use a filter trigger (explained in the link I have provided).

    image.png

     

     

  • saumitra Profile Picture
    11 on at

    @ScottShearer  Thanks for the reply,I can't put mail condition in my flow because if anyone makes the changes in folder/sub folder/files mail should trigger to list of people to notify the changes.

    Any help would be appreciated because, I need to get this work ASAP.  

  • saumitra Profile Picture
    11 on at

    Any help would be appreciated because, I need to get this work ASAP.  

  • ScottShearer Profile Picture
    25,290 Most Valuable Professional on at

    @saumitra 

    The solution that I suggested would only prevent you, not others from making changes. 

    Here are links to other solutions:

    Stopping Infinite Loops When Updating SharePoint List Items – I DIDN'T KNOW I COULD DO THAT WITH OFFICE 365! (o365scott.blog)

    Solved: Infinite Loop in Flow - Power Platform Community (microsoft.com)

     

  • saumitra Profile Picture
    11 on at

    @ScottShearer Thanks for the help let me check the solutions

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 785

#2
Valantis Profile Picture

Valantis 669

#3
Haque Profile Picture

Haque 563

Last 30 days Overall leaderboard