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 / Do until loop not Working
Power Automate
Unanswered

Do until loop not Working

(1) ShareShare
ReportReport
Posted on by 28
HI, I have build flow which is working as it is creating multiple entries in SharePoint list but the every entry is same as StartDate. Please see below screenshots for more information.
 
 
Categories:
I have the same question (0)
  • Nived_Nambiar Profile Picture
    18,138 Super User 2026 Season 1 on at
    Hi,
     
    does the set variable action in flow is used for updating the startdate based on compose action output ?
     
    Also how many such items are created in SP ?
     
     
     
  • Niranjanbabu Chakali Profile Picture
    23 on at

    Hello,

    Please format your date as 'yyyy-MM-dd' before using the 'Add days' function.

  • CU05100823-0 Profile Picture
    28 on at
    @Niranjanbabu Chakli, I have tried that but the dates are still the as Start date.
  • CU05100823-0 Profile Picture
    28 on at
    @Nived Nambiar 
     
    Answer to your 1st Question. Correct: set variable action in flow is used for updating the StartDate based on compose action output.
     
    Answer to 2nd question: If I enter in Power App Sick leave for 2 days (07/10/2024 and 08/10/2024). It create 2 entries in SharePoint List but Date is same in both entries.
  • CU05100823-0 Profile Picture
    28 on at
    Anyone that could help please?
  • David_MA Profile Picture
    15,181 Super User 2026 Season 1 on at
    You need to provide more details:
    • Maybe I missed it somewhere, but you just say "Do until loop not Working" but do not say what is not working. So, first of all, what's not working? Are you getting any error messages. What do you expect it to do that it is not doing?
    • How are you formatting the StartDate? It must be formatted in ISO8601 format. The expression to add days should automatically format as ISO8610.
    • However, the do until condition does not make sense to me. Why would the start date ever be greater than adding 1 day to the end date? Normally a start date comes BEFORE an end date. That could be your issue.
    • Any maybe I am interpreting your flow incorrectly, but it looks like you are just creating an item in SharePoint until it meets your condition. Why are you repeatedly creating the same item in your SharePoint list until the start date is greater than or equal to the end date? There is not even a delay in your do until, which you will need, or it is going to do it 60 times and then timeout.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 262 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 167

#3
Haque Profile Picture

Haque 154

Last 30 days Overall leaderboard