Skip to main content
Community site session details

Community site session details

Session Id : CBFy4UMXMg6k8mF8kyXdCX
Power Automate - Building Flows
Answered

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

Like (0) ShareShare
ReportReport
Posted on 18 Apr 2023 17:30:27 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.

  • Verified answer
    DerekSmith Profile Picture
    51 on 18 Apr 2023 at 20:31:45
    Re: Using a condition with a terminate action causes the condidion to have no inputs

    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.

  • DerekSmith Profile Picture
    51 on 18 Apr 2023 at 20:02:30
    Re: Using a condition with a terminate action causes the condidion to have no inputs

    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.

  • DerekSmith Profile Picture
    51 on 18 Apr 2023 at 19:02:05
    Re: Using a condition with a terminate action causes the condidion to have no inputs

    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?

  • VictorIvanidze Profile Picture
    12,554 on 18 Apr 2023 at 18:12:23
    Re: Using a condition with a terminate action causes the condidion to have no inputs

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

  • DerekSmith Profile Picture
    51 on 18 Apr 2023 at 17:33:09
    Re: Using a condition with a terminate action causes the condidion to have no inputs

    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.

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 986 Moderator

#2
stampcoin Profile Picture

stampcoin 699 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 577 Super User 2025 Season 2

Loading complete