cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
SK_Tan
Helper II
Helper II

Condition not working

Happy New Year everyone!! and I need help during the NYE!!

 

I set-up my flow this way:

 

If the results from SharePoint greater than 100000, then it will follow the step A and if no, step B.

 

However I received this error msg:

 

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

 

My flow:

SK_Tan_1-1609412866338.png

 

Error msg:

SK_Tan_0-1609412788030.png

 

Can anyone help?

4 REPLIES 4
ScottShearer
Super User III
Super User III

@SK_Tan 

Try using the int() expression to convert the value that is a string to an integer.

Example:  int(100000)

image.png

If that doesn't work, use the int() expression on the other side of the condition.

 

 

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott

Hi Scott,

 

Thanks for your reply!

 

It does not work. What do you mean by "use the int() expression on the other side of the condition"?

ScottShearer
Super User III
Super User III

@SK_Tan 

I mean that you should use the int() expression on the other side of your condition:

image.png

If this does not work, please post a screen shot of your condition with your expressions.

What type of SharePoint column are you using?

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott

Thanks Scott!

 

See below my SharePoint column:

SK_Tan_0-1609423102550.png

 

So I want it the formula to be:

 

If that column > 100,000, then it should follow step A, if not, step B.

 

How can I fix this? 

Helpful resources

Announcements
MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Users online (17,594)