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 III
Super User III

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 blogPower Automate Video Tutorials

View solution in original post

2 REPLIES 2
abm
Super User III
Super User III

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 blogPower Automate Video Tutorials

View solution in original post

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