cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Mark_Petereit
Frequent Visitor

Troubleshooting flow: Can't Expand Loop

One of my users is reporting that a Loop Until condition isn't being satisfied, even though they're sure they're adding the information it's looking for. The problem is, when I pull up the running flow and click on the loop, it's not expanding. How can I examine the parameters of each step inside the loop if I can't expand the loop to examine them?

 

Loop won't expand when I look into the running flow:

 

Closed Loop.JPG

 

 

Here is what the loop looks like expanded in the flow editor:

 

Open Loop.JPG

9 REPLIES 9
v-yuazh-msft
Community Support
Community Support

Hi @Mark_Petereit,

 

Yes, we couldn't expand the loop when the loop is on running.

If you want to expand the loop to examine them, you could wait until the flow is finished or the loop is finished.

 

Best regards,

Alice

If a loop runs until a condition is satisfied, the user is convinced the condition is satisfied, but it’s still looping, how am I supposed to troubleshoot the actions inside the loop to determine why the conditions are not being satisfied?

This is still a HUGE debugging issue. I have a flow that simply has not kicked off a function inside a loop.

 

Here's what that looks like:

Monitor.PNGI'd LOVE to examine the steps inside that loop to determine what's going on, but when I click the loop, it doesn't expand.

 

Here's what's inside that loop:

 

Edit.PNG

 

I need to be able to expand the loop so I examine that aproval step to determine WHY it's not sending the approval. But I can't. Because someone made the decision that loops can't be opened for troubleshooting running flows.

 

That's VERY frustrating!

Anonymous
Not applicable

I agree that this is a huge debugging issue. You are also unable to see the results if you manually cancel a flow while the loop is running. You are only able to view the contents of the loop if it is succesful which completely eliminates the possibility to debug it when necessary. I ran a loop for over an hour without the result I expected and was unable to debug it because of this limitation. After this failure I had to add an email notification and re-run the loop in order to debug it. This flow has schedule limitations which also required me to restructure the entire flow to make it work around those limitations. Over all this debugging limitation created hours worth of extra work for something that took me 5 minutes to debug in the end.

Totally agree with that. Call me crazy but wasn't it possible to inspect a running loop before? In any case, at least, I would be important to be able to inspect it when we cancel the execution if it's not possible while it's running. That's a HUGE problem for us too.

PeanutRhombus
Frequent Visitor

Did you ever find a solution to this? I'm currently experiencing the same issue

Francis
Regular Visitor

Same here. Impossible to debug!

mpkorich
Regular Visitor

I've been able to debug my loops using a "debug array" variable and appending strings with variable values throughout the loop. This array is saved to a sharepoint file (logfile.txt) 

mpkorich_0-1611713989989.png

This results in a logfile.txt (which was not formatted as I thought it would but I got the point).

mpkorich_1-1611714145331.png

Logfile below:

mpkorich_2-1611714190775.png

The Createfile action is a simple join on all the strings in your "buffer array".

mpkorich_3-1611714268628.png

This is a hacked debug logfile but you will have visibility into your loops now.

-M 

jacoFrie
New Member

Simply dropping a reply to add voice to this issue. I've also encountered this issue and been immensely frustrated by it. In addition, it seems numerous previous posts have mentioned running into this issue in relation to trying to debug starting/waiting for approvals, which is also my case. 

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Users online (2,115)