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

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
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

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

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

Users online (74,840)