How to resolve infinite loop error while creating an automated cloud workflow with Power Automate and Sharepoint?

Shuja Ur Rehman 0 Reputation points
2025-07-19T16:22:32.4066667+00:00

I have a list of Down Payment Request for my business. I have a criterion of approving authorities based on the value of Payment. The list of SharePoint is manually maintained with columns for DPR#, Amount, Reason, Approval Status.

I want to create an automated cloud workflow that specific approving authorities are notified when an item is created or modified in that list. When all the approvers approve the request, it's status is updated in the SharePoint. But if rejected within the workflow, it is notified to the creator with rejectors remarks.
The problem i'm facing is that approvers are notified, and when approved, the SharePoint list is not being updated. I'm getting infinite loop warning. Here's my workflow. Let me know if you need further details. Also, I've attached header of my sample SharePoint list.User's image

User's image

Microsoft 365 and Office | SharePoint | For business | Windows
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Viego An 5,815 Reputation points Microsoft External Staff Moderator
    2025-07-19T23:42:15.8733333+00:00

    Dear Shuja Ur Rehman,

    Thank you for reaching out to Microsoft Q&A forum. We are happy assist you.

    Regarding the loop error you're encountering, I recommend trying the following suggestion to determine if the issue persists:

    Below is a sample flow I created to test this scenario:

    SharePoint List Configuration:User's image

    Power Automate Workflow:

    User's image

    To help prevent the infinite loop error, you can add a trigger condition to your flow:

    Click the three dots on the trigger card.

    Under the Settings.User's image

    Scroll to Trigger Conditions:

    Paste this: 

    @not(or(equals(triggerOutputs()?['body/ApprovalStatus'], 'Approved'), equals(triggerOutputs()?['body/ApprovalStatus'], 'Rejected')))

    This condition ensures the flow only runs when the approval status is not already set to "Approved" or "Rejected", helping to avoid unnecessary re-triggers.

     

    If you need any further assistance or clarification, feel free to reach out. We're here to help. Thank you very much for your understanding and your cooperation.   


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". 

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

     

     


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.