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

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Carousel April Dunnam Updated 768x460.jpg

Urdu Hindi D365 Bootcamp

Dont miss our very own April Dunnam’s The Developer Guide to the Galaxy! Find out what the Power Platform has to offer for the traditional developer.

Users online (2,402)