SYMPTOM:
A report fails to generate SQL or execute in Strategy Developer with the following error:

Status: Initialization Failed Error: SQLEngine got an Exception from DFC: Engine Logic: Generate SQL for fact allocation failed, please check if the allocation expression is valid.

Re-editing the fact and hitting the validate butting once again will evaluate the expression as invalid now.

ACTION:
Use an ApplySimple expression. The definition of the fact will have to follow the appropriate native CASE statement depending on the database type.