web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Sending an Email (V2) ...
Power Automate
Answered

Sending an Email (V2) after a Switch Not Working "Unexpected exception encountered when evaluating branching condition"

(0) ShareShare
ReportReport
Posted on by 90

Hi there,

 

I'm getting the following error in my flow: my switch is valid but then the send an email (V2) function fails:

 

zematsirhc_0-1671477222197.png

I'm guessing "when evaluating branching condtion" is the key phrase but I have no idea what that would mean. My To address is the dynamic field "Created By Email" and I have two dynamic values in the body of the email. Otherwise, it's just a plain text email.

 

Any help is appreciated.

Categories:
I have the same question (0)
  • ScottShearer Profile Picture
    25,290 Most Valuable Professional on at

    @zematsirhc 

    Can you post screen shots of your Flow? 

  • Amit_Sharma Profile Picture
    1,569 Super User 2024 Season 1 on at

    Hi @zematsirhc 

    Could you please show me Send an email (v2) action in edit mode.

  • zematsirhc Profile Picture
    90 on at

    I've replaced my text with examples to show you. This failed even without the dynamic content in the body of the email.

     

    zematsirhc_0-1671479972233.png

     

  • Amit_Sharma Profile Picture
    1,569 Super User 2024 Season 1 on at

    Hi @zematsirhc ,

    Using one compose Action Please Test Create By Email Return proper email address of recipient.

     

    The Error occurs due to this dynamic field which use in To field of send an email v2 action

  • zematsirhc Profile Picture
    90 on at

    Hi, 

     

    I'm getting the same error using the compose action:

     

    zematsirhc_0-1671481459768.png

    I know at one point I had to put a semicolon after the created by email, and that fixed it in the past. That's not working now.

  • zematsirhc Profile Picture
    90 on at

    Also worth noting is that I've used the created by email successfully testing another branch in this same flow.

  • Amit_Sharma Profile Picture
    1,569 Super User 2024 Season 1 on at

    Hi @zematsirhc 

    please try to give "12345678" of that branch Where you send email.

    Amit_Sharma_0-1671482983589.png

     

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

     

  • zematsirhc Profile Picture
    90 on at

    Hi @Amit_Sharma,

    Here is the other branch. This one isn't on the switch branch:

     

    zematsirhc_0-1671483539227.png

     

  • Amit_Sharma Profile Picture
    1,569 Super User 2024 Season 1 on at

    Hi @zematsirhc 

    What is problem in Apply to each where you try to send an email.

  • Amit_Sharma Profile Picture
    1,569 Super User 2024 Season 1 on at

    Is solved your problem of switch branch after converting in string from number in case 3 as shown above where you are getting error.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 589

#2
Valantis Profile Picture

Valantis 459

#3
11manish Profile Picture

11manish 382

Last 30 days Overall leaderboard