cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
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.

 

Capture.JPG

5 REPLIES 5
ScottShearer
Super User
Super User

@Anonymous 

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.

Scott
Anonymous
Not applicable

Here is the screen captured in edit mode.

Capture1.JPG

Anonymous
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.

Anonymous
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.

Capture.JPG

Helpful resources

Announcements
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)