I have a do loop that is running while a date is less than or equal to an end date. For some reason it thinks that 3/8 is greater than 3/19. I am not sure why it is doing this. Any insight would be greatly appreciated.
The format commands are the following
formatDateTime(variables('IncrementedDate'), 'M/d/yyyy') formatDateTime(variables('EndDate'), 'M/d/yyyy')
Solved! Go to Solution.
Do you mean that the ‘do-until’ loop has been skipped?
In your case, the do-until loop will do the actions in it until the first ‘formatDateTime()’ is greater than the second ‘formatDateTime()’.
If it’s skipped, then it’s maybe the variables you defined or some other problems causing this problem. Could you take a screenshot of your detailed flow and the running result?
If the problem still exists, please feel free to let me know.
Community Support Team _ Kira Xie
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
The loop is running but it does not run to the full extent that I believe it should be running. Below are screenshots
Second run of the loop...
Since the incremented date is < the end date I would expect this to run again.
This has reared its ugly head again. I am still comparing ticks and it should continue running but it is not. Any thoughts would be greatly appreciated.
for closer reference -
the do until is -
Check out new user group experience and if you are a leader please create your group
May the fourth be with you, join us online!
See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.