cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
EddyGee
Level: Powered On

Greater Than Condition Expects Two Parameters?

I've created a form, with 1 field being numbers. In Flow, I want to any value > 150 to trigger a notification. However, it fails at the Condition with:

 

InvalidTemplate. Unable to process template language expressions for action 'Condition' at line '1' and column '2726': '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.'.
 
I'm sure this is an elementary mistake. I can confirm the field sourced is definitely a number. For visual reference, please see below.
 
Capture.PNG
1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: Greater Than Condition Expects Two Parameters?

Hi @EddyGee 

 

Thanks for the update. I did built one and yes you were missing the apply each loop.

 

In my example below Question 3 is the numeric value.

 

form1.png

 



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!



View solution in original post

15 REPLIES 15
Super User
Super User

Re: Greater Than Condition Expects Two Parameters?

Hi

 

Try the following:

 

1. Add a compose and map the value above the condition step.

2. Then in the condition map use the expression int(outputs('Compose'))

 

If the above doesn't work please post a screenshot of our runtime history



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!



Community Support Team
Community Support Team

Re: Greater Than Condition Expects Two Parameters?

Hi @EddyGee ,

 

Have you take a try with @abm 's solution?

Please take a try and the flow should as below:

1.png

The expression in the first field of the condition as below:

int(outputs('Compose'))

Please let me know if your problem could be solved.

 

Best regards,

Alice       

 

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

EddyGee
Level: Powered On

Re: Greater Than Condition Expects Two Parameters?

Hi @v-alzhan-msft  / @abm 

 

Thanks for the response, apologies for the delay.

 

I tried that before actually, & got the following:

 
InvalidTemplate. Unable to process template language expressions for action 'Condition' at line '1' and column '2730': 'The template language function 'int' was invoked with a parameter that is not valid. The value cannot be converted to the target type.'.
Super User
Super User

Re: Greater Than Condition Expects Two Parameters?

Hi @EddyGee 

 

Thanks for your reply. Could you please post a screenshot of your flow runtime history?



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!



EddyGee
Level: Powered On

Re: Greater Than Condition Expects Two Parameters?

Apologies, not sure how that's done @abm - looking into it.

EddyGee
Level: Powered On

Re: Greater Than Condition Expects Two Parameters?

Do you just mean that?

RunScreen.PNG

Super User
Super User

Re: Greater Than Condition Expects Two Parameters?

Could you please post the compose run history? So that I can see what value it's coming through. Also I need a design screenshot of IF condition?



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!



EddyGee
Level: Powered On

Re: Greater Than Condition Expects Two Parameters?

Like this? (input/output link look dead)

 

design.PNGcompose.PNG

EddyGee
Level: Powered On

Re: Greater Than Condition Expects Two Parameters?

However, when not entering the "variable" that's > 150 in the Condition part, instead just inserting it into an excel row, it displays the value entered on the form (i.e. 400 in this case), so 400/'a number' is coming through.

Super User
Super User

Re: Greater Than Condition Expects Two Parameters?

Hi 

 

Thanks for the screenshot. So what is the type of this  Microsoft Form field?



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!



EddyGee
Level: Powered On

Re: Greater Than Condition Expects Two Parameters?

Bog standard number input

 

Gift.PNG

EddyGee
Level: Powered On

Re: Greater Than Condition Expects Two Parameters?

I've also tried inputing into excel then citing that as the checker, but got another error.

EddyGee
Level: Powered On

Re: Greater Than Condition Expects Two Parameters?

The solution involves both the aforementioned examples by @abm & @v-alzhan-msft  in addition to appling a "Apply to each" control grouping.

Super User
Super User

Re: Greater Than Condition Expects Two Parameters?

Hi @EddyGee 

 

Thanks for the update. I did built one and yes you were missing the apply each loop.

 

In my example below Question 3 is the numeric value.

 

form1.png

 



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!



View solution in original post

Community Support Team
Community Support Team

Re: Greater Than Condition Expects Two Parameters?

Hi @EddyGee ,

 

Have your problem been solved?

If yes, please go ahead and mark the post as solved by clicking “Accept as Solution” so that this thread will be marked for other users to easily identify!

 

Best Regards,

Alice

 

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 266 members 5,369 guests
Please welcome our newest community members: