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

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Cannot exit 'do until'...
Power Automate
Unanswered

Cannot exit 'do until' loop (waiting for a ClickDimensions email in Dynamics to send or fail)

(0) ShareShare
ReportReport
Posted on by 10

Hello all,

 

Here's my situation: I have a flow which builds a ClickDimensions email (in Dynamics) and then schedules it to send immediately. I then have a 'do until' loop which keeps checking the status of the email until it either sends or fails. (ClickDimensions usually takes at least 10–20 seconds to send an email.) There is then logic further down the flow depending on whether the email sent or failed.

 

My issue is: the flow gets stuck in the 'do until' loop and never comes out of it. I can't figure out what the issue is — I've looked at other posts in this forum and made sure I'm assigning the value the loop is checking to a variable, which gets updated each time the 'do until' iterates. But the flow still gets stuck.

 

Here's the relevant section of the flow. The 'Emails' variable seen at the start is an array containing 3 Dynamics GUIDs:

 

Do until.png

Categories:
I have the same question (0)
  • Verified answer
    RichRK Profile Picture
    10 on at
    Re: Cannot exit 'do until' loop (waiting for a ClickDimensions email in Dynamics to send or fail)

    Nevermind! I realised the 'do until' loop is actually working perfectly — I was supplying the wrong values in the OR logic. 🤦🏻‍♂️

     

    Dynamics returns an integer for that particular field, not a string.

  • alrezac Profile Picture
    on at
    Re: Cannot exit 'do until' loop (waiting for a ClickDimensions email in Dynamics to send or fail)

    Hi Rich,

     

    Its great that you were able to solve this issue on your own. We have some documentation on limitations of the "Do Until" action also if you would like to review those.

     

    https://docs.microsoft.com/en-us/power-automate/limits-and-config

     

    Regards,

     

    Alex

     

    -------

     

    Community Support Team _ Alex Rezac
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard