Simple Rule 4.0 Rule Throwing Error


#1

I have the following rule that is very simple and seems to work but is throwing an error.

app:21062019-07-13 04:17:02.990 pm errorjava.util.NoSuchElementException: Cannot pop() an empty List (allHandler)


#2

Remove the end if before the else?


#3

You have an ELSE-IF after an END-IF. The structure you want is IF...ELSE-IF...END-IF. An ELSE-IF (like an ELSE) needs to be contained inside an IF...END-IF block. The END-IF ends the entire IF block.


#4

I’d also simplify and not do a else if and only do an else.


#5

Good idea. As-is, there's a logical gap where nothing will happen if the value equals 475, so that would take care of that (unless that is the desired behavior for some reason or one of the other conditionals is changed to >= or <=).


#6

So @napalmcsr, @bertabcd1234 is this what you are talking about?


#7

Looks good to me!


#8

Yup