CDISP0045E A type mismatch exists. A boolean is required. The actual type of the condition is: selector type. The type of the selector in a conditional operator must be boolean. Ensure that the type of the selector is boolean.