Showing results for 
Search instead for 
Did you mean: 
Frequent Visitor

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 III
Super User III


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.


Here is the screen captured in edit mode.


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.

New Member

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

Hi @aresurreccio ,

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


Helpful resources

MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (1,868)