cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Shegs
Level: Powered On

Flow Case Switch Failing

odd that it's failing, I have created case switch that works in other flows... am I missing something?

 

For me to troubleshoot I have super simplified the case and actions to just a notify.

I get rows from SQL (filtering to 1 row for this troubleshoot)

I am switching case based on a location field (in this case the number 10)

if the switch is gone, everything else has been working... but that doesn't help when there may be hundreds of rows of data.2018-06-13_15-16-40.jpg

 

1 ACCEPTED SOLUTION

Accepted Solutions
Shegs
Level: Powered On

Re: Flow Case Switch Failing

I found the issue.

the switch will only work with columns of datatype INT....

not sure exactly why it was failing, but I altered the view to change the value I was switching on to INT from varchar and it worked fine...2018-06-14_8-09-54.jpg

View solution in original post

8 REPLIES 8
Super User
Super User

Re: Flow Case Switch Failing

It isn't the switch that is failing as the notification is failing. Ohterwise the notifdication step wouldn't run. Can you show the notification action details in edit mode.

Shegs
Level: Powered On

Re: Flow Case Switch Failing

Yeah, it looks like it's going through the switch, but I've removed the switch and it's worked... I'll attempt again real quick and send the results

 

here it is currently

2018-06-14_7-12-52.jpg

Shegs
Level: Powered On

Re: Flow Case Switch Failing

all I did here was move the notification out of the switch branch and it worked fine.

while the exact same notification (this time in location 15) failed while inside the switch branch

2018-06-14_7-16-46.jpg

Super User
Super User

Re: Flow Case Switch Failing

Notification.PNG 

I just reproduced this problem. i would add this to the I found a bug section

 

In the meanwhile I would use send an Email actions

Shegs
Level: Powered On

Re: Flow Case Switch Failing

I'll move it over to a bug thread, but this notification wasn't the only thing failing inside the switch.

the notifications were just used for troubleshooting.

 

what baffles me the most is I have a working switch I also made yesterday in a different flow.

 

2018-06-14_7-44-50.jpg2018-06-14_7-46-20.jpg

Super User
Super User

Re: Flow Case Switch Failing

That doiesn't make sense. I'm sure I have sent emails inside a switch before.

 

Can you try exporting the flow and then importing it as a new flow. That way the connections should be reset.,

Shegs
Level: Powered On

Re: Flow Case Switch Failing

it doesn't even have to be emails

2018-06-14_7-57-54.jpg2018-06-14_7-58-32.jpg

Shegs
Level: Powered On

Re: Flow Case Switch Failing

I found the issue.

the switch will only work with columns of datatype INT....

not sure exactly why it was failing, but I altered the view to change the value I was switching on to INT from varchar and it worked fine...2018-06-14_8-09-54.jpg

View solution in original post

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (4,594)