EQA1696E Conditional Expression Conditional_Logic_Expression in WHEN clause cannot be evaluated.

Explanation

The conditional expression is not valid. Make sure the variable is known in current compile unit or that the attributes are compatible.