web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Compose action skipped due to Condition, but gives a null value that I do not want

(0) ShareShare
ReportReport
Posted on by 193

Hello, 
I have a flow that is checking in a source if a Sample ID exists. For all that do not exist, I am composing a list. However, for the ones that do exist, the compose action gives them a null value. 

First up is the "Apply to All" action which goes through each Sample ID to check if it exists, when it does not, a compose is created to hold the Sample ID. Once it goes through all items, I have another Compose action that takes the Outputs from all the Compose actions within the Apply to All. 

 

Sample1.png

Sample2.png

 

However, for items where the Sample ID does not exist, I get the "ActionBranchingConditionNotSatisfied" message, which is expected since the condition is not running that Compose action. But it ends up giving me the "Null" value in the final compose action. How can I stop this from happening?

 

Sample3.png

I have the same question (0)
  • Verified answer
    Jronash Profile Picture
    827 on at
    Re: Compose action skipped due to Condition, but gives a null value that I do not want

    If you want to construct your array using this method, you're not going to be able to avoid those null values.  Fortunately, it's easy to remove them with the Filter array action.  Just do something like this:

    filter.png

  • CAH2035 Profile Picture
    193 on at
    Re: Compose action skipped due to Condition, but gives a null value that I do not want

    @Jronash  That was perfect, thank you!

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 614 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 401 Moderator

#3
chiaraalina Profile Picture

chiaraalina 282

Last 30 days Overall leaderboard