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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Correct format for Con...
Power Automate
Answered

Correct format for Conditional Expression to avoid error: Expression must contain a 'Boolean value'

(0) ShareShare
ReportReport
Posted on by 20
I'm trying to make a group of actions dependent on the subflow completing successfully, so at the end of my Subflow I have a Set Variable Action that sets a variable named MembershipDataWasExtracted to value 1.
 
Then I added a IF action, and in the field Conditional Expression, I typed MembershipDataWasExtracted=1, but Power Automate Desktop (v2.53) throws an error: Expression must contain a 'Boolean value'.
 
The 'help' provided here: https://learn.microsoft.com/en-gb/power-automate/desktop-flows/actions-reference/conditionals#if refers to Input parameters 'Operator', 'First operand', 'Second operand' that I can't see anywhere:
Argument Optional Accepts Default Value Description
Operator N/A Equal to (=), Not equal to (<>), Greater than (>), Greater than or equal to (>=), Less than (<), Less than or equal to (<=), Contains, Does not contain, Is empty, Is not empty, Starts with, Does not start with, Ends with, Does not end with, Is blank, Is not blank Equal to (=) Choose the relationship of first operand to the second operand.
First operand No *   Enter a value name defined by a previous action, text, number or expression to compare with the second operand.
Second operand No *   Enter a value name produced by a previous action, text, number or expression to compare with the first operand.
 
 
I see simply one field Conditional Expression:
 
 
 
What am I doing wrong?
 
 
 
I have the same question (0)
  • Verified answer
    eetuRobo Profile Picture
    4,204 Super User 2025 Season 2 on at

    The reason you see just one line is because you have chosen Power Fx enabled flow. You might want to create a new flow that is not Power Fx enabled since then it would match that documentation and is bit more simple way to build no code flows.
    So have the power fx enabled toggled off


    Then the If -action looks like this:


    If you want to continue wiht power fx flow then do the following:

    add equal sign in the beginning of the Conditional Expression.



    If the variable MembershipDataWasExtracted value 1 is text then either convert it to number or in the conditional expression add quotation marks around the 1


    Right now you are checking if the text "MembershipDataWasExtracted" is equal to number 1. You need to add equal sign before to tell the Power Fx that its a variable you are referring to and not text. The conditon result needs to be either true or false. So either MembershipDataWasExtracted is 1 or not. But since its comparing different types its not resulting in boolean true or false
  • Suggested answer
    Pstork1 Profile Picture
    68,717 Most Valuable Professional on at
    When referencing a variable in Power Automate Desktop there should be a % on either side of the name. Your conditional is referencing a static value not a variable. It should look like this.
     
    %MembershipDataWasExtracted%=1
     
    Make sure you use the {x} to insert the variable.

    ----------------------------------------------------------------------------------
    If this Post helped you, please click "Does this answer your question" and give it a like to help others in the community find the answer too!

    Paul Papanek Stork, MVP
    Blog: https://www.dontpapanic.com/blog
     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard