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
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Users online (1,180)