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 / condition is not worki...
Power Automate
Suggested Answer

condition is not working as expected

(0) ShareShare
ReportReport
Posted on by 15
I have a condition in the workflow which should be running true branch when the spreadsheet(response from a form) doesnt have a new hire name similar to the input appeared in the past 3 days. If the true branch runs it should sent a reminder email asking them to fill the form. My flow used to run fine before but now even when it should run true branch it keeps running false branch. what can be the reason? how to fix it? 
 
 
Output of compose is
 
Categories:
I have the same question (0)
  • Suggested answer
    11manish Profile Picture
    3,788 on at
    The evidence indicates that your filtering logic is working correctly, as no matching records were found. The most likely cause is that the Condition is evaluating the array incorrectly rather than checking whether it is empty. Updating the condition to use empty() or length() = 0 should resolve the issue.
  • NKC Profile Picture
    15 on at
    Thank you. I made the changes. Still the false branch ran instead of True. What can be the reason? I am trying to achieve is, this is onboarding staff workflow. First email goes to supervisor to fill the IT requirements form. If they dont fill teh form withing 3 days I want to send a reminder email asking to do the task. So for this the flow checks the response spreadsheet for the new hire name and if they find the name false branch if not true. But this is not able to achieve. Is there any otehr way? I am using standard version. 
  • André Arnaud de Calavon Profile Picture
    712 on at
    Hi NKC,
     
    Can you provide information about the parameters on your actions from start to the condition (including this condition)? Have you checked the flow run for all input and output details to see what exactly is executed by the flow run?
  • David_MA Profile Picture
    15,241 Super User 2026 Season 1 on at
    If you still require assistance, please post the condition you are using in your workflow and explain your criteria for it to evaluate to yes and no. 
  • NKC Profile Picture
    15 on at

    Thanks for your response.

    The flow is triggered manually by inputting New hire name, email, Supervisor name, email, Start date and time fraction which helps make decision on whether they need a permanent spot or they are hotdesking. Logic is after 3 days, but for testing I have made it in 2 minutes it checks an Excel spreadsheet that stores Microsoft Forms responses for our IT requirements form.

    The logic I am trying to achieve is:

    • If the new hire's name is found in the spreadsheet, the flow should go to the False branch (no reminder needed).
    • If the new hire's name is not found in the spreadsheet, the flow should go to the True branch and send a reminder email to the supervisor.

    The issue is that even when there is no matching record in the spreadsheet, the condition is still evaluating to False.

    I have reviewed the flow run history and made some changes, but the result remains the same.

    Could you please clarify which specific inputs, outputs, and action parameters you would like me to share? Attached is the screenshots of the List Rows action, Condition action, and the run history details of a recently ran flow. Any help would be appreciated. 

  • David_MA Profile Picture
    15,241 Super User 2026 Season 1 on at
    Based on what you show in the attached document regarding condition 1:
     
    7. Condition 1:
    • equals(empty(body('Filter_array')), true)
    • If True, send reminder email
    • If False, run the reminder steps.
    I would set it up this way:
     
    The left side of the condition would only use this portion of your expression: empty(body('Filter_array'))
     
    Without seeing the actual condition action, it's difficult to tell exactly what is being evaluated. Based on the expression you posted, it is possible that the logic has been unintentionally reversed by evaluating a Boolean expression inside another condition.

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

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 276 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 152

#3
Haque Profile Picture

Haque 123

Last 30 days Overall leaderboard