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 / 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,270 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,270 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

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 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard