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
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.

New Process Advisor Capabilities carousel.png

Read the blog for the latest news

Read the latest about new experiences and capabilities in the Power Automate product blog.

PA Survey Carousel Image.png

We want to hear from you!

If you are a small business ISV/Reseller, share your thoughts with our research team.

AI Builder AMA June 7th carousel (up on May 25th, take down June 8th) (1).png

'Ask Microsoft Anything' about AI Builder!

The AI Builder team invite you to ask questions and provide helpful answers at our next AMA.

Users online (1,443)