Is the app showing an invalid rule error?

“Invalid Rule..” error occurs when the app cannot match the product’s stock with any threshold rules configured,
See the below example, it shows the following rules configured

Less than or equal to zero --> Show “Sold out” message

Less than or equal to 4 --> Show“Low stock” message

Greater than or equal to 10 --> Show “High stock” message

As per the above rules if a product has a stock of 6 then it does not match any of the rules above as it's not less than 4 neither it is greater than 10, and hence app does not know what to display and shows the “Invalid rule error….”

How to fix the error?

To fix the error, update threshold rules so the numbers are in a consecutive order for example the above example rule can be fixed by changing the last rule “Greater than or equal to 5”