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
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.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

PA Survey Carousel Image.png

We want to hear from you!

If you are a small business ISV/Reseller, share your thoughts with our research team.

Top Kudoed Authors
Users online (1,184)