Can't create a predicate linked to an entity because the function returned by the ConditionFactory property threw an exception. ...