cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
yvettePrice
Frequent Visitor

Unable to process template language expressions for action 'Symptom_checker' at line '1' and column '39778': 'The template language function 'greaterOrEquals' expects two parameter of matching types. The function was invoked with values of type 'String' and 'Float' that do not match.'.

I have condition with two validations, the data source is coming from a MS form. This is for COVID checks, if the user says yes to any of the symptoms, they should get a text telling them to speak to their supervisor, I have 2 validations where one division has a different threshold for the person's temperature than the rest of the facilities. This is where I am getting an error. In my condition I have the covid questions in one group then I have the other facility in a separate group, I tell it that if the division is X and temp is =>100.4 and they have said yes to any of the questions this is a yes and should flag this. This only works when I remove the current temp validation.

symptom checker.png

1 ACCEPTED SOLUTION

Accepted Solutions
Gopala_Krishna
Super User
Super User

@yvettePrice 

 

On the right hand side of the condition where you are passing the numerical value, can you please try formatting the data as a string using the string() function and specify the value inside that. The condition will look something like Current Temp is greater than string('100.4')

 

Currently the flow is converting the value to a floating point integer and the value on the left hand side is a string so flow is unable to compare due to which you are getting the error. convert the RHS value to string and it will start working as expected.

 

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

if the information shared helps you, please consider giving a thumbs up 👍 and mark solution as resolved

View solution in original post

3 REPLIES 3
Gopala_Krishna
Super User
Super User

@yvettePrice 

 

On the right hand side of the condition where you are passing the numerical value, can you please try formatting the data as a string using the string() function and specify the value inside that. The condition will look something like Current Temp is greater than string('100.4')

 

Currently the flow is converting the value to a floating point integer and the value on the left hand side is a string so flow is unable to compare due to which you are getting the error. convert the RHS value to string and it will start working as expected.

 

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

if the information shared helps you, please consider giving a thumbs up 👍 and mark solution as resolved

yvettePrice
Frequent Visitor

Thank you Gopala! That did the trick.

I tried the similar thing and it doesn't work. For eg: Amount is greater than on equal to sring('25000'), the outpu is cancelled for both the amounts i.e. less than 25k or greater than 25k, or it's vice versa. Any thoughts on this one?

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Users online (3,576)