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 / Where to find document...
Power Automate
Answered

Where to find documentation on Do Until in Flows

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Tried to set Timeout to 30 days in Do Until and got following error:

        "Unable to process template language expressions in action 'Do_until_-_check_if_prices_set' 'until' limits at line '1' and column

        '43490': 'The string 'PT30D' is not a valid TimeSpan value.'. "

So where do I find documentation on how to use it?

Thanks

Categories:
I have the same question (0)
  • Verified answer
    RobElliott Profile Picture
    10,426 Super User 2026 Season 1 on at

    @Anonymous you can see more details at https://en.wikipedia.org/wiki/ISO_8601#Durations

    You've added a T into it which is incorrect because T is for time values like hours, minutes and seconds. Try it with just P30D.

    Rob
    Los Gallardos
    If I've answered your question or solved your problem, please mark this question as answered. This helps others who have the same question find a solution quickly via the forum search. If you liked my response, please consider giving it a thumbs up. Thanks.

  • yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hi @Anonymous 

     

    Note that the do until loops in flows have a max count capped to 5000 iterations only. So if you are adding the P30D to the flow, ensure that you add a relevant delay that the flow 5000 iterations of the do until loop are not exhausted by then. 

     

    Hope this Helps!

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

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!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 589

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 284 Super User 2026 Season 1

Last 30 days Overall leaderboard