Showing results for 
Search instead for 
Did you mean: 
Not applicable

An unexpected exception encountered when evaluating branching condition

Dear all,

I have flow which get share point list items.

Then loop in all items in the list to compare column value (single line text) in switch.

However, one action of sending email in one switch case.

ActionConditionFailed. The execution of template action 'Send_an_email_(V2)' failed: an unexpected exception encountered when evaluating branching condition.



Super User
Super User


Can you post a screen shot of your Flow in edit mode please - that will be a big help to those trying to assist.



If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Not applicable

Here is the screen captured in edit mode.


Not applicable

Hi @ScottShearer ,

I found the solution to issue.

Switch only work with input condition of Int and String datatype.

I cast input to Int, then it work fine.

Not applicable

Hi Generalstratos. How did you convert the input? My input is a dynamic value that is linked to an Excel cell. Thanks

Hi @Anonymous ,

you can use int function to convert your input to integer data type.


Helpful resources

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Users online (1,021)