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

Community site session details

Session Id : lPZJqAyci4KFxuY4JlTer8
Power Automate - Building Flows
Answered

Error after switch function "an unexpected exception encountered when evaluating branching condition."

Like (0) ShareShare
ReportReport
Posted on 22 Aug 2023 13:20:49 by 29

I am trying to build a flow which is triggered by a form, which then checks the data received against a price list on excel. Once it works out which price is correct, it will populate a word template ready to be sent off as a quote.

 

My current issue is at switch, where it fails due to the error (an unexpected exception encountered when evaluating branching condition) on the correct case. If i were to leave case blank with just the equals value everything runs fine. Its when i try to continue the flow it gives me the error. I'm trying to use compose in each of the cases but I have a feeling i'm missing a step. I've also tried just populating the word template with a set value instead but it still comes up with the error. Any guidance would be greatly appriciated.

I have the same question (0)
  • Verified answer
    creativeopinion Profile Picture
    10,478 Super User 2025 Season 2 on 22 Aug 2023 at 14:28:52
    Re: Error after switch function "an unexpected exception encountered when evaluating branching condition."

    @conorsanchez 
    What is the output of the Compose action above the Switch action? If your value is an integer, you will need to use an expression in the Switch cases to convert the 10 into an integer. 

     

    Try the int() function.

     

    Hope this helps!


    If I helped you solve your problem—please mark my post as a solution ✅.
    Consider giving me a 👍 if you liked my response!

    👉 Watch my tutorials on YouTube
    👉 Tips and Tricks on TikTok

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

MS.Ragavendar – Community Spotlight

We are honored to recognize Ragavendar Swaminatha Subramanian as our September…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 783 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 515 Moderator

#3
trice602 Profile Picture

trice602 299 Super User 2025 Season 2

Last 30 days Overall leaderboard
Loading complete