Showing results for 
Search instead for 
Did you mean: 
Advocate II
Advocate II

PAD bug: "On block error" doesn't work with Set Variable

The "On block error" action doesn't work with the Set Variable error.  The Set Variable actions are placed in the "On block error" and set the block error to "Continue flow run" + "God to next action (screenshot below).


When Set Variable errors (due to a missing reference in a For Each's CurrentItem variable), the desktop flow stops instead of continuing onward (as the On block error should facilitate).  If needed, the For Each loop is looping through a list object populated with the Add Item to List action, from some JSON.  When the JSON includes the needed items, this error does not happen. 









Frequent Visitor

I am having the same issue. I agree that it is a bug with PAD.

Frequent Visitor

I could be wrong but I think that the "On block error" action will only catch the exceptions that each action can handle. So, for the "Set variable" action, since the action itself doesn't offer any exception handling, then the "On block error" won't handle it either. 

Helpful resources

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.

Top Solution Authors
Users online (2,815)