Appendixes > Error Codes and Messages > Error Messages > Boolean Operator Errors

Boolean Operator Errors
Unmatched brackets
The category that the Legacy Profile task is importing contains a closing brackets that is missing a corresponding opening bracket. For example:
(dogs) <OR> cats)
NOT cannot be terminal—Problematic NOT/Bracket—single operand required
The category the Legacy Profile task is importing contains an expression in which NOT is not followed by a Boolean expression.
The NOT operator must occur before the Boolean expression that it applies to.
 
NOTE The NOT, AND and OR operators, unlike other operators, do not need to occur in angle brackets (<OR> and OR are both valid). For this reason, you must put occurrences of the word or or and that you do not want to use as operators into double quote marks (“or”, “and”). This error message often returns when the word or or and occurs without quotation marks.
Prefix unavailable for comma, OR, AND and IN
The category that the Legacy Profile task is importing contains an expression in which one of the operators below appears to be used in prefix form.
Some operators can occur either as infixes to their operands or as prefixes. Because of potential ambiguities, the Legacy Profile task does not accept these operators as prefixes:
,
OR
AND
IN
 
NOTE The NOT, AND and OR operators, unlike other operators, do not need to occur in angle brackets (<OR> and OR are both valid). For this reason, you must put occurrences of the word or or and that you do not want to use as operators into double quote marks (“or”, “and”). This error message often returns when the word or or and occurs without quotation marks.
Problematic AND/OR—at least two operands required
The category that the Legacy Profile task is importing contains an expression in which the OR or AND operator has only one operand. For example:
dog AND
The OR and AND operators must apply to at least two operands (for example dog AND cat).
 
NOTE The NOT, AND and OR operators, unlike other operators, do not need to occur in angle brackets (<OR> and OR are both valid). For this reason, you must put occurrences of the word or or and that you do not want to use as operators into double quote marks ("or", "and"). This error message often returns when the word or or and occurs without quotation marks.