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 succeeded, b...
Power Automate
Answered

Condition succeeded, but output wrong

(1) ShareShare
ReportReport
Posted on by 78

I have created a flow.  when a response is submitted, get details in an excel. For each row, a sequential number is generated.

For eg, for an exhibition, user has to select from 3 time slots.  Slot 1, 2 and 3.  But limit for each slot is 150.  So condition is set as if Token is greater than or equal to 151, then an email to user to be sent as slot is full, else pick the token and send to the user.

 

Here the condition shows as succeeded, but workflow went through "True" where it should have been 'False'

What could be the reason

Kingfisher1_0-1704988958332.png

 

Categories:
I have the same question (0)
  • trice602 Profile Picture
    16,397 Super User 2026 Season 1 on at

    Hi @Kingfisher1 ,

     

    I think the root cause here is your greater than or equal to works with numeric values, not strings as in "151".  Have you tried just using 151 as the value verses the string expression?

     

     

     

     

  • Kingfisher1 Profile Picture
    78 on at

    Tested.  below error popped up.  Unable to process template language expressions for action 'Condition_3' at line '0' and column '0': 'The template language function 'greaterOrEquals' expects two parameter of matching types. The function was invoked with values of type 'String' and 'Integer' that do not match.'.

     

    Earlier condition works, but it chose to go with 'True' instead of 'False'.  flow ran successfully though

  • Verified answer
    David_MA Profile Picture
    15,205 Super User 2026 Season 1 on at

    Use an int expression for the Token value from Excel to convert it to an integer (assuming this column only contains whole numbers). Then you can just enter 151 on the right side of the condition without converting it to a string.

  • Verified answer
    trice602 Profile Picture
    16,397 Super User 2026 Season 1 on at

    Hi @Kingfisher1 ,

     

    So you need number to number.  Change your condition to:

     

    int(insert_your_dynamic_content_token) greater than or equal to 151

     

     

  • Kingfisher1 Profile Picture
    78 on at

    That worked.  created initiatlize variable before the switch function and added it to the condition.  Put just the number.  It seems to be obedient now. 🙂  Thats a solution for me.

     

    Kingfisher1_0-1704989992602.png

     

  • trice602 Profile Picture
    16,397 Super User 2026 Season 1 on at

    Hi @Kingfisher1 ,

     

    Always great to hear!!!

     

     

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 252 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 169

#3
Haque Profile Picture

Haque 154

Last 30 days Overall leaderboard