cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Sévérity, priority case

 

Hello Expert ,

 

I'm getting an error message : Unable to process template language expressions for action 'Condition' at line '1' and column '22271': 'The template language function 'less' expects all of its parameters to be either integer or decimal numbers. Found invalid parameter types: 'Null'.'.

 

I tried to calculate the  severity  of case.

 

I used  a calculate field  TotalCount.

 

This field depend of the answers ( other calculate field) .

 

Each severity depend of the   amount  of point ( range ) .

 

 

What are you suggestion.

 

I attached  to  screen shot

 

Thank you !

 

Severity-1.PNGSeverity-2.PNGSeverity-3.PNGSeverity-4.PNGSeverity-4b.PNGSeverity-5.PNG

 

1 ACCEPTED SOLUTION

Accepted Solutions
abm
Super User
Super User

Hi @Anonymous 

 

Looks like the calculated field is returning null.

 

Declare a variable as integer.

 

Then before the IF condition check whether the TotalCount is null or not. If null set the variable as zero, if not set the current value of TotalCount. You probably need to use an expression int() to convert the TotalCount value to numeric.

 

Thanks

 



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog
Power Automate Video Tutorials

View solution in original post

2 REPLIES 2
abm
Super User
Super User

Hi @Anonymous 

 

Looks like the calculated field is returning null.

 

Declare a variable as integer.

 

Then before the IF condition check whether the TotalCount is null or not. If null set the variable as zero, if not set the current value of TotalCount. You probably need to use an expression int() to convert the TotalCount value to numeric.

 

Thanks

 



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog
Power Automate Video Tutorials
v-alzhan-msft
Community Support
Community Support

Hi @Anonymous ,

 

Please take a try with @abm 's suggestion and let me know if your have any problem.

 

Best regards,

Alice       

 

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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
Top Kudoed Authors
Users online (3,424)