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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / "The execution of temp...
Power Automate
Unanswered

"The execution of template action 'Switch' failed" error when using a switch case

(0) ShareShare
ReportReport
Posted on by 157

Error-details-switch.png

So, strangely, I've encountered this so many times, and have done extensive Google searching, and tried to find a solution on here, to no avail. This always happens to me when using Switch cases. 

 

I have an SP online list/form that has a Choice column that can accept multiple choices. Depending on what is selected, I want to add a user to a group. I have been following this guide, which turns out to be not that helpful. But anyway, I get the above error when it tries to read the Switch case.

 

flow-capture.png

 

What am I missing here, and what does that error actually mean? What can I do when using switch cases to avoid this same error appearing in the future?

Categories:
I have the same question (0)
  • Pstork1 Profile Picture
    68,707 Most Valuable Professional on at

    As the error says, the Switch statement requires a simple value to switch on and you are passing it an object.  I assume something in the object is a text property that you actually want to switch on.  You mentioned that its a multi-select column,  Are you running your switch inside an Apply to each to get each value to process?  And if you are are you making sure that you are processing a simple string and not an object containing a stiring?

     

    Unfortunately, your screenshot is too small to make out any real details.

  • FreddieV Profile Picture
    157 on at

    Thanks for your reply.

    What do you mean by 'simple value'?

    I am passing the underlying text value that the end-user would see on the form. What other value can I give it, or how can I convert the value to something else? Also, how do I not pass the switch case an Object?

     

    Screenshots below:

     

    fullscreen-flow-design.pngFlow-error.png

     

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard