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 / Power Automate - Neste...
Power Automate
Unanswered

Power Automate - Nested Switch causing parent Switch to fail

(0) ShareShare
ReportReport
Posted on by

Hi, I have a flow triggered by Microsoft Forms. It contains two Switch actions:

 

  • Switch 1 – checks company type (JDG, sp. z o.o.) and creates SharePoint folders

  • Switch 2 – nested inside Switch 1 (JDG branch), checks service type and fills Word template


  •  

Problem: When both Switches are active, Switch 1 fails. When I disable Switch 2, Switch 1 works perfectly.

Both Switches read from the same "Get response details" action. I've already tried trim() and string() functions, checked for spaces and invisible characters – no effect.

Any help appreciated, thanks!

Categories:
I have the same question (0)
  • chiaraalina Profile Picture
    2,425 Super User 2026 Season 1 on at
    Hi
     
    Switch 1 is probably not failing because of the Forms value.
    It usually fails because something inside the JDG case (Switch 2 or its actions) is failing. When a nested action fails, the parent Switch also shows as Failed.
     
    • Open Run history and expand the JDG case in Switch 1, the real error is usually inside one of the actions there
    • Make sure Switch 2 has a Default case, even if it does nothing, it helps avoid errors
    • Clean the Forms value before using it in Switch 2, use a Compose action, for example:
      trim(toLower(outputs('Get_response_details')?['body/<serviceFieldId>']))
      Then use the Compose output in your Switch.
    Please share the exact error from run history and add a screenshot. It will help us to find the root cause. Thanks!

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 377

#2
11manish Profile Picture

11manish 279

#3
David_MA Profile Picture

David_MA 234 Super User 2026 Season 1

Last 30 days Overall leaderboard