Showing results for 
Search instead for 
Did you mean: 
Helper III
Helper III

A Boolean value in the On connector of a Switch in power automate

I have a flow that has been working for a while where the switch On value is a Boolean called HirMgrComplete.  I had the values in the switch as Yes  and No respectively as the TrueText property is equal to Yes and the FalseText property is equal to No in the PowerApp.  It worked for several months but I am now getting this error:





I have tried true and false as well as 1 and 0.  When I try true and false I get the following error:


"The template validation failed:  'The template action 'Switch' at line'1' and column '5463' is not valid:  the value 'True' specified for 'case' property in switch case 'Hir_Manager_Complete_Yes' is not allowed.  Only values of types string, number or a '@parameters()' expression that evaluates to a number or a string is allowed.'."


Any help would be very much appreciated.

Super User
Super User

Hi @GoGorilla 


Workaround is convert the boolean value to 1 or 0 using an IF expression. Please see below.




Above my expression is as follows


My boolean field is called 'OpenpointsW'

Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up

Proud to be a Flownaut!

Learn more from my blog
Power Automate Video Tutorials
Helper III
Helper III

@abm I will give this a try but I am extremely curious as to why it has been working as is for months and months.

Helpful resources

Register for a Free Workshop.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Users online (2,029)