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 / Using a condition with...
Power Automate
Answered

Using a condition with a terminate action causes the condidion to have no inputs

(0) ShareShare
ReportReport
Posted on by 51

Hello,

 

To start, This used to work just fine, but now I have 3 different versions of the same flow that are experience the same problem.

 

The Problem:

When my flow is run I get the same cancelled flow each and every time, even when it should be working. 

 

Point of occurrence:

DerekSmith_0-1681838505066.png

The condition checks 2 things:

  1. That the file type being passed in is a PDF
  2. That the vendor I'm looking for exists in a SP list.

(Notice the No inputs in the condition)

 

If I remove the terminate, and then resubmit the exact same input, the condition works!

DerekSmith_1-1681838738916.png

 

However, because the conditions were not met, I want the flow to stop there and not continue.

 

What happened that caused this to no longer work?  

 

It last ran correctly on January 25, which was the last time I was testing this.

(I've been waiting on another group before I could fully test)

 

Any help would be much appreciated.

Categories:
I have the same question (0)
  • DerekSmith Profile Picture
    51 on at

    To elaborate further:

     

    With the terminate action in place, the condition always shows no input.

    So even if the condition should be True, there are no inputs and it terminates the flow.

  • VictorIvanidze Profile Picture
    13,079 on at

    Just remove Terminate action and move all remaining actions (Initialize etc) to the left branch "If yes"

  • DerekSmith Profile Picture
    51 on at

    I guess that's an option, but theres ~30-40 steps after this. 

    And it's not so good for readability with a couple other conditional steps along the way as well.

     

    What I'm really after is why did it stop working correctly, and how to make it work like it did 3 months ago?

  • DerekSmith Profile Picture
    51 on at

    I deleted the condition step and added it back in, with the same result

     

    I then started a new workflow, and rebuilt the first several steps up to this condition.

     

    I get the same problem with the no inputs into the condition if a terminate it present. 

    Seems like a pretty big bug out there if anyone was using a condition to terminate a flow. 

     

    It's disappointing that the changes along the way cause so many issues with existing flows. 

    I'm getting nervous about putting a full scale solution into production, and how often I will need to implement emergency fixes when things like this change.

  • Verified answer
    DerekSmith Profile Picture
    51 on at

    I found a solution that worked on my test flow.

    Instead of using Terminate action I used Cancel Flow Run action

    DerekSmith_0-1681849781336.png

     

    Where the expressions are:

    • workflow().tags.environmentName
    • workflow().name
    • workflow().run.name

     

    This lets the condition input flow through and actually work.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 592

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard