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 / Switch control in the ...
Power Automate
Unanswered

Switch control in the Flow for Yes/No data type from Dataverse

(0) ShareShare
ReportReport
Posted on by 72

Hei all,

 

I have a flow where I Initialize variable "Urgent" and use a switch control to transform Yes/No choice data type into Yes and No as string.

ArisTale_0-1654859681289.pngArisTale_1-1654859744906.png

 

When I run the flow, I am having this error:

ArisTale_2-1654859800355.png

 

Please, help me to figure out what is wrong...

 

Thank you in advance,

Alexandra

 

Categories:
  • Shujaath_Khan Profile Picture
    1,111 Super User 2024 Season 1 on at

    Hi @ArisTale 

     

    The last line in exception says the same in exception message detail.

    The switch control takes either int or string, so actually, you've to revise your comparison to be valid.

     

    It should be string-to-string or int-to-int comparision

     

    shujaathkhan_1-1654884959519.png

     

    Thanks

    If this post helps, please consider Accepting it as the solution. Thumbs up if it helped you other way.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 321 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 271

#3
Henil Profile Picture

Henil 115

Last 30 days Overall leaderboard