cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Regular Visitor

Action Switch error

Hello,
I created a flow that is to check the student campus and degree. There are 5 campuses and 5 types of degree.
I have decided to use the action Switch to check.

However, I got an error in the action Switch, it says "ActionConditionFailed. The execution of template action 'Switch_2' failed: the comparison of scope expression evaluation result to case branch value failed 'Template language function 'strongEquals' expects parameters of same type, but found 'String,Integer' distinct types.'.

I've never seen this kind of error, any advice?

Here is my flow.

Untitled-6.jpg

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

After I have tried to change type of the parameters which are campus and degree to integer, the action switch works properly as expected.

 

 

View solution in original post

5 REPLIES 5
Highlighted
Dual Super User III
Dual Super User III

Hi!

Can you share a screenshot of your flow design just showing the 'Switch' action block definition? The screenshots you share are so big I cannot see its details

Thanx!



Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



Highlighted

I couldn't upload the screenshot, please visit the link below.
https://i.imgur.com/Kg7fGlB.jpg 

Highlighted
Dual Super User III
Dual Super User III

Hi!

Almost!

You shared a screenshot from flow execution. I need the screenshot from your Flow design

Thanx!



Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



Highlighted

Here is my flow design.

Untitled-6-2.jpg

Highlighted

After I have tried to change type of the parameters which are campus and degree to integer, the action switch works properly as expected.

 

 

View solution in original post

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Top Solution Authors
Top Kudoed Authors
Users online (7,770)